From: DoHyun Pyun Date: Thu, 29 Sep 2016 06:09:41 +0000 (+0900) Subject: Fix the svace issue X-Git-Tag: submit/tizen/20160929.061152^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3d58c0c69d5bb5ad4b17f681ed3e29dfd5ba5a5b;p=platform%2Fcore%2Fapi%2Fbluetooth.git Fix the svace issue Change-Id: I0d5f4a3b202782248c2a77655b7345d068280196 Signed-off-by: DoHyun Pyun --- diff --git a/test/bt_unit_test.c b/test/bt_unit_test.c index d9c23d4..9e9b2c4 100644 --- a/test/bt_unit_test.c +++ b/test/bt_unit_test.c @@ -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) {