Fix SVace issue WGID 40946 89/62589/1 accepted/tizen/common/20160317.160736 accepted/tizen/ivi/20160318.112900 accepted/tizen/mobile/20160318.112210 accepted/tizen/tv/20160318.112547 accepted/tizen/wearable/20160318.112600 submit/tizen/20160317.043432
authorYu Jiung <jiung.yu@samsung.com>
Thu, 17 Mar 2016 01:15:50 +0000 (10:15 +0900)
committerYu Jiung <jiung.yu@samsung.com>
Thu, 17 Mar 2016 01:16:17 +0000 (10:16 +0900)
Change-Id: Iee149fc50d8ffadab7c5cc46598b7a54b99fed5b
Signed-off-by: Yu jiung <jiung.yu@samsung.com>
packaging/capi-network-wifi-direct.spec
src/wifi-direct-client-proxy.c

index b0a2f999d7499d918909d3c511df54f3754487cf..6f7b08ca25af532db9fcec53b6cb0fd3e4c5ae16 100644 (file)
@@ -1,6 +1,6 @@
 Name:       capi-network-wifi-direct
 Summary:    Network WiFi-Direct Library
-Version:    1.2.52
+Version:    1.2.53
 Release:    1
 Group:      Network & Connectivity/API
 License:    Apache-2.0
index 026ecc4fcdeb994b7b8c9f9c73c9c2b465b23118..68ff765b7e6f34479f1600aa85749cc3aa42106e 100755 (executable)
@@ -1152,6 +1152,7 @@ static char **get_service_list(char *services, unsigned int *count)
        unsigned int cnt = 0;
        unsigned int i = 0;
        unsigned int j = 0;
+       char *saveptr = NULL;
 
        if (!count || !services || (services && strlen(services) <= 0)) {
                WDC_LOGE("Invalid parameters.");
@@ -1162,10 +1163,10 @@ static char **get_service_list(char *services, unsigned int *count)
        pos1 = services;
        pos2 = g_strdup(services);
 
-       pos1 = strtok (pos1,",\n");
+       pos1 = strtok_r (pos1,",\n", &saveptr);
        while (pos1) {
                cnt++;
-               pos1 = strtok (NULL, ",\n");
+               pos1 = strtok_r (NULL, ",\n", &saveptr);
        }
        WDC_LOGD("Total Service Count = %d", cnt);