From a380fdb286f9d7e0e10c0ddfcda8b91565e9d40d Mon Sep 17 00:00:00 2001 From: hyunuktak Date: Wed, 2 Mar 2016 19:22:29 +0900 Subject: [PATCH] Fixed a svace 31139 Change-Id: I9d9c73bad77bf5246d0687124c9c531b27362e69 Signed-off-by: hyunuktak --- packaging/capi-network-wifi.spec | 2 +- test/wifi_test.c | 6 ++---- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/packaging/capi-network-wifi.spec b/packaging/capi-network-wifi.spec index 914e23b..d4d4207 100755 --- a/packaging/capi-network-wifi.spec +++ b/packaging/capi-network-wifi.spec @@ -1,6 +1,6 @@ Name: capi-network-wifi Summary: Network Wi-Fi library in TIZEN C API -Version: 1.0.67 +Version: 1.0.68 Release: 1 Group: System/Network License: Apache-2.0 diff --git a/test/wifi_test.c b/test/wifi_test.c index a3cfddc..baf0d06 100755 --- a/test/wifi_test.c +++ b/test/wifi_test.c @@ -1537,9 +1537,9 @@ int test_wifi_tdls_disconnect(void) { int rv = 0; - char * peer_mac = NULL; + char peer_mac[18]; printf("Enter Mac_address: "); - if(scanf(" %ms", &peer_mac) < 1) + if(scanf(" %17s", peer_mac) < 1) return -1; if (strlen(peer_mac) > 17) @@ -1551,10 +1551,8 @@ int test_wifi_tdls_disconnect(void) rv = wifi_tdls_disconnect(peer_mac); if (rv != WIFI_ERROR_NONE) { printf("test_wifi_tdls_disconnect() is failed [%s]\n", __test_convert_error_to_string(rv)); - g_free(peer_mac); return -1; } - g_free(peer_mac); return 1; } -- 2.7.4