summaryrefslogtreecommitdiffstats
path: root/src/server
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2011-11-07 20:29:22 +0000
committerDavid Robillard <d@drobilla.net>2011-11-07 20:29:22 +0000
commitaf376456335423225fbcf897c1b3e676abdf3ba0 (patch)
treefe1ec5efde2466e062087293fc34a90074e53337 /src/server
parent522fc593060796c01d169a569c9874b3ecd70d85 (diff)
downloadingen-af376456335423225fbcf897c1b3e676abdf3ba0.tar.gz
ingen-af376456335423225fbcf897c1b3e676abdf3ba0.tar.bz2
ingen-af376456335423225fbcf897c1b3e676abdf3ba0.zip
Remove use of non-portable _XOPEN_SOURCE and strdup.
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@3604 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/server')
-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) {