From: Hyuk Lee Date: Tue, 12 Apr 2016 06:48:40 +0000 (+0900) Subject: Svace issue fixed X-Git-Tag: submit/tizen/20160412.065615^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=76b9b1330fcecffb52c65536f84d93818450e612;p=platform%2Fcore%2Fapi%2Fbluetooth.git Svace issue fixed Change-Id: Id81ce49c541ab4ebc8162dd0435d3e32045b7c9e Signed-off-by: Hyuk Lee --- diff --git a/test/bt_unit_test.c b/test/bt_unit_test.c index 19343ea..d7df18e 100644 --- a/test/bt_unit_test.c +++ b/test/bt_unit_test.c @@ -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) {