diff options
author | Jiwoong Im <jiwoong.im@samsung.com> | 2016-03-23 15:25:00 +0900 |
---|---|---|
committer | Jiwoong Im <jiwoong.im@samsung.com> | 2016-03-23 15:25:00 +0900 |
commit | ea29753c920d192f553237558e2def9d1b62a9b8 (patch) | |
tree | 29cbcc48712c6781e04da1d9b31d50416f4fe215 | |
parent | 6f744cd46a35ddf1b0e39ddabf3b350538bd7b13 (diff) | |
download | ui-gadget-1-accepted/tizen/tv/20160324.132739.tar.gz ui-gadget-1-accepted/tizen/tv/20160324.132739.tar.bz2 ui-gadget-1-accepted/tizen/tv/20160324.132739.zip |
use thread-safe functionsubmit/tizen/20160323.235918submit/tizen/20160323.065638accepted/tizen/wearable/20160324.132703accepted/tizen/tv/20160324.132739accepted/tizen/mobile/20160324.132919accepted/tizen/ivi/20160324.131638accepted/tizen/common/20160325.134922accepted/tizen/common/20160324.084233
Change-Id: I9795ca587b1f7a6a952f1e900813b4982b0bf261
Signed-off-by: Jiwoong Im <jiwoong.im@samsung.com>
-rw-r--r-- | client/ug-client.c | 4 |
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; |