Fix the svace issue 29/90229/1 accepted/tizen/common/20160929.163305 accepted/tizen/ivi/20160930.001116 accepted/tizen/mobile/20160930.001108 accepted/tizen/tv/20160930.001113 accepted/tizen/wearable/20160930.001110 submit/tizen/20160929.061152
authorDoHyun Pyun <dh79.pyun@samsung.com>
Thu, 29 Sep 2016 06:09:41 +0000 (15:09 +0900)
committerDoHyun Pyun <dh79.pyun@samsung.com>
Thu, 29 Sep 2016 06:09:41 +0000 (15:09 +0900)
Change-Id: I0d5f4a3b202782248c2a77655b7345d068280196
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
test/bt_unit_test.c

index d9c23d4..9e9b2c4 100644 (file)
@@ -3223,7 +3223,7 @@ int test_set_params(int test_id, char *param)
 
                        if (param_index > 0) {
                                g_test_param.params[param_index - 1] = g_malloc0(strlen(param) + 1);
-                               strcpy(g_test_param.params[param_index - 1], param);
+                               strncpy(g_test_param.params[param_index - 1], param, strlen(param));
                        }
 
                        if (param_index == g_test_param.param_count) {