From: chleun.moon Date: Mon, 13 Jun 2016 04:56:56 +0000 (+0900) Subject: [Svace] Replace strtok with strtok_r X-Git-Tag: accepted/tizen/common/20160613.144928^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F62%2F74162%2F1;p=apps%2Fnative%2Fug-wifi-efl.git [Svace] Replace strtok with strtok_r Change-Id: Ieeca7a52d898da630aae0081ca1097a587a3f848 Signed-off-by: cheoleun --- diff --git a/packaging/wifi-efl-ug.spec b/packaging/wifi-efl-ug.spec index 1498619..ca1259f 100644 --- a/packaging/wifi-efl-ug.spec +++ b/packaging/wifi-efl-ug.spec @@ -1,7 +1,7 @@ %define _unpackaged_files_terminate_build 0 Name: wifi-efl-ug Summary: Wi-Fi UI Gadget for TIZEN -Version: 1.0.175 +Version: 1.0.176 Release: 1 Group: App/Network License: Flora-1.1 diff --git a/sources/libraries/Common/common_ip_info.c b/sources/libraries/Common/common_ip_info.c index 673b438..d5439fd 100755 --- a/sources/libraries/Common/common_ip_info.c +++ b/sources/libraries/Common/common_ip_info.c @@ -1111,11 +1111,12 @@ static void ip_info_print_values(wifi_ap_h ap) } /* Proxy Address */ - char *proxy_addr = strtok(txt, ":"); + char *save_str = NULL; + char *proxy_addr = strtok_r(txt, ":", &save_str); SECURE_DEBUG_LOG(UG_NAME_NORMAL, "* PROXY ADDR [%s]", proxy_addr); /* Proxy port */ - char *proxy_port = strtok(NULL, ":"); + char *proxy_port = strtok_r(NULL, ":", &save_str); SECURE_DEBUG_LOG(UG_NAME_NORMAL, "* PROXY PORT [%s]", proxy_port); g_free(txt); }