summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJiwoong Im <jiwoong.im@samsung.com>2016-03-23 06:25:00 (GMT)
committerJiwoong Im <jiwoong.im@samsung.com>2016-03-23 06:25:00 (GMT)
commitea29753c920d192f553237558e2def9d1b62a9b8 (patch)
tree29cbcc48712c6781e04da1d9b31d50416f4fe215
parent6f744cd46a35ddf1b0e39ddabf3b350538bd7b13 (diff)
downloadui-gadget-1-ea29753c920d192f553237558e2def9d1b62a9b8.zip
ui-gadget-1-ea29753c920d192f553237558e2def9d1b62a9b8.tar.gz
ui-gadget-1-ea29753c920d192f553237558e2def9d1b62a9b8.tar.bz2
Change-Id: I9795ca587b1f7a6a952f1e900813b4982b0bf261 Signed-off-by: Jiwoong Im <jiwoong.im@samsung.com>
-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;