summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/server/JackDriver.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/server/JackDriver.cpp b/src/server/JackDriver.cpp
index b0094650..0f77a2c7 100644
--- a/src/server/JackDriver.cpp
+++ b/src/server/JackDriver.cpp
@@ -530,7 +530,8 @@ JackDriver::_session_cb(jack_session_event_t* event)
serialiser->write_bundle(root, string("file://") + event->session_dir);
}
- event->command_line = strdup(cmd.c_str());
+ event->command_line = (char*)malloc(cmd.size() + 1);
+ memcpy(event->command_line, cmd.c_str(), cmd.size() + 1);
jack_session_reply(_client, event);
switch (event->type) {