From 442837eac7d4ec0dbc4123d9d5ef778ef9cf5e45 Mon Sep 17 00:00:00 2001 From: hyunuktak Date: Mon, 14 Dec 2015 09:31:24 +0900 Subject: [PATCH] Fix a prevent for VD-Critical #2 Change-Id: I3548d76be52fefb702a79ab861d12de3c10170fb Signed-off-by: hyunuktak --- packaging/net-config.spec | 2 +- src/wifi-power.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packaging/net-config.spec b/packaging/net-config.spec index 7ea2392..e132cec 100755 --- a/packaging/net-config.spec +++ b/packaging/net-config.spec @@ -1,6 +1,6 @@ Name: net-config Summary: TIZEN Network Configuration service -Version: 1.1.47 +Version: 1.1.48 Release: 2 Group: System/Network License: Apache-2.0 diff --git a/src/wifi-power.c b/src/wifi-power.c index 8f203fe..9c64730 100755 --- a/src/wifi-power.c +++ b/src/wifi-power.c @@ -1242,7 +1242,7 @@ void __netconfig_set_ether_macaddr() rand_mac_add[0] |= 0x02; /*set local assignment bit*/ /*Set the Mac address in Vconf*/ - sprintf_s(mac_addr, WLAN_MAC_ADDR_MAX, "%x:%x:%x:%x:%x:%x", + snprintf(mac_addr, WLAN_MAC_ADDR_MAX, "%x:%x:%x:%x:%x:%x", rand_mac_add[0], rand_mac_add[1], rand_mac_add[2], rand_mac_add[3], rand_mac_add[4], rand_mac_add[5]); -- 2.34.1