diff options
author | Robin Gareus <robin@gareus.org> | 2014-06-14 16:45:55 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2014-06-14 16:45:55 +0200 |
commit | f7acad4e5cd36bef416633307c459656bf30b573 (patch) | |
tree | 6f0cbfa14c3bd851cc6b7320142c3d8d75ef938e /libs | |
parent | 62ba8d23e33d009e202968408924d00441fe587a (diff) |
strtok() is the root of all evil.
Diffstat (limited to 'libs')
-rw-r--r-- | libs/ardour/linux_vst_support.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libs/ardour/linux_vst_support.cc b/libs/ardour/linux_vst_support.cc index 0d976d653b..bd1ed0d27e 100644 --- a/libs/ardour/linux_vst_support.cc +++ b/libs/ardour/linux_vst_support.cc @@ -152,8 +152,8 @@ void* vstfx_load_vst_library(const char* path) len2 = strlen(path); /*Try all the possibilities in the path - deliminated by : */ - - lxvst_path = strtok (envdup, ":"); + char *saveptr; + lxvst_path = strtok_r (envdup, ":", &saveptr); while (lxvst_path != 0) { @@ -177,7 +177,7 @@ void* vstfx_load_vst_library(const char* path) /*Try again*/ - lxvst_path = strtok (0, ":"); + lxvst_path = strtok_r (0, ":", &saveptr); } /*Free the path*/ |