Svace issue fixed 97/65697/1 accepted/tizen/common/20160413.130755 accepted/tizen/ivi/20160413.082714 accepted/tizen/mobile/20160413.073147 accepted/tizen/tv/20160413.075501 accepted/tizen/wearable/20160413.080452 submit/tizen/20160412.065615
authorHyuk Lee <hyuk0512.lee@samsung.com>
Tue, 12 Apr 2016 06:48:40 +0000 (15:48 +0900)
committerHyuk Lee <hyuk0512.lee@samsung.com>
Tue, 12 Apr 2016 06:48:40 +0000 (15:48 +0900)
Change-Id: Id81ce49c541ab4ebc8162dd0435d3e32045b7c9e
Signed-off-by: Hyuk Lee <hyuk0512.lee@samsung.com>
test/bt_unit_test.c

index 19343ea..d7df18e 100644 (file)
@@ -2895,7 +2895,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) {