summaryrefslogtreecommitdiff
path: root/libs/ardour/linux_vst_support.cc
diff options
context:
space:
mode:
Diffstat (limited to 'libs/ardour/linux_vst_support.cc')
-rw-r--r--libs/ardour/linux_vst_support.cc6
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*/