summaryrefslogtreecommitdiff
path: root/client/ug-client.c
diff options
context:
space:
mode:
Diffstat (limited to 'client/ug-client.c')
-rw-r--r--client/ug-client.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/client/ug-client.c b/client/ug-client.c
index c1f7b5c..98dece0 100644
--- a/client/ug-client.c
+++ b/client/ug-client.c
@@ -602,7 +602,9 @@ static int update_argument(const char *optarg, struct appdata *ad)
{
const char *key;
const char *val;
- key = strtok((char *)optarg, ",");
+ char *saveptr;
+
+ key = strtok_r((char *)optarg, ",", &saveptr);
if (!key)
return -1;