Fix the Svace issue 32/89532/1 accepted/tizen/common/20160926.154748 accepted/tizen/ivi/20160927.083811 accepted/tizen/mobile/20160927.074222 accepted/tizen/tv/20160927.084015 accepted/tizen/wearable/20160927.083841 submit/tizen/20160926.090601
authorHyuk Lee <hyuk0512.lee@samsung.com>
Mon, 26 Sep 2016 02:52:00 +0000 (11:52 +0900)
committerHyuk Lee <hyuk0512.lee@samsung.com>
Mon, 26 Sep 2016 02:52:00 +0000 (11:52 +0900)
- WGID : 48912

Change-Id: I17c4715064d6c2e45606ec818cd000534752d6d9
Signed-off-by: Hyuk Lee <hyuk0512.lee@samsung.com>
test/bt_unit_test.c

index f921f6f031eeab6e538fcfbfdc94471bc81214dd..c67f00286bf8e37f49800a7b3d510004f2f88f05 100644 (file)
@@ -3030,7 +3030,7 @@ int test_set_params(int test_id, char *param)
                                int len = strlen(param);
                                g_test_param.params[param_index - 1] = g_malloc0(len);
                                param[len - 1] = '\0';
-                               strcpy(g_test_param.params[param_index - 1], param);
+                               strncpy(g_test_param.params[param_index - 1], param, len);
                        }
 
                        if (param_index == g_test_param.param_count) {