Fixed a svace for 212550 34/129534/1 accepted/tizen/unified/20170517.125458 submit/tizen/20170517.032711
authorhyunuktak <hyunuk.tak@samsung.com>
Wed, 17 May 2017 01:13:33 +0000 (10:13 +0900)
committerhyunuktak <hyunuk.tak@samsung.com>
Wed, 17 May 2017 01:13:35 +0000 (10:13 +0900)
Change-Id: I8d0fc13c0ac76e477393079fd5533d4f2de8db6c
Signed-off-by: hyunuktak <hyunuk.tak@samsung.com>
packaging/stc-manager.spec
src/helper/helper-nfacct-rule.c

index c4872c6..27201b8 100644 (file)
@@ -1,6 +1,6 @@
 Name:       stc-manager
 Summary:    STC(Smart Traffic Control) manager
-Version:    0.0.5
+Version:    0.0.6
 Release:    0
 Group:      Network & Connectivity/Other
 License:    Apache-2.0
index 7e7f5cb..1eb140b 100755 (executable)
@@ -286,7 +286,7 @@ bool recreate_counter_by_name(char *cnt_name, nfacct_rule_s *cnt)
                        iface = get_iftype_by_name(ifname_buf);
                        if (iface == STC_IFACE_DATACALL) {
                                cnt->iotype = NFACCT_COUNTER_OUT;
-                               strcpy(cnt->ifname, ifname_buf);
+                               strncpy(cnt->ifname, ifname_buf, MAX_IFACE_LENGTH);
                        }
                }