From 7e189f6e09133b3205b24b6388d4b6e7dbc46420 Mon Sep 17 00:00:00 2001 From: hyunuktak Date: Wed, 17 May 2017 10:13:33 +0900 Subject: [PATCH] Fixed a svace for 212550 Change-Id: I8d0fc13c0ac76e477393079fd5533d4f2de8db6c Signed-off-by: hyunuktak --- packaging/stc-manager.spec | 2 +- src/helper/helper-nfacct-rule.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packaging/stc-manager.spec b/packaging/stc-manager.spec index c4872c6..27201b8 100644 --- a/packaging/stc-manager.spec +++ b/packaging/stc-manager.spec @@ -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 diff --git a/src/helper/helper-nfacct-rule.c b/src/helper/helper-nfacct-rule.c index 7e7f5cb..1eb140b 100755 --- a/src/helper/helper-nfacct-rule.c +++ b/src/helper/helper-nfacct-rule.c @@ -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); } } -- 2.7.4