diff options
author | Pyun DoHyun <dh79.pyun@samsung.com> | 2016-03-22 18:48:48 -0700 |
---|---|---|
committer | Gerrit Code Review <gerrit@review.vlan103.tizen.org> | 2016-03-22 18:48:48 -0700 |
commit | 8584584e1f40f622f30c83b594fef0a9eb708922 (patch) | |
tree | 41aeb170b551bc09a72953c44e6ff76a002d9c67 | |
parent | 8ebd2175e7f0922b3fd9f17e83cbb3aab917c142 (diff) | |
parent | 8c0270ca5c9d4fff4751f1f51935b2a677434c0f (diff) | |
download | bluetooth-accepted/tizen/wearable/20160405.013703.tar.gz bluetooth-accepted/tizen/wearable/20160405.013703.tar.bz2 bluetooth-accepted/tizen/wearable/20160405.013703.zip |
Merge "[bluetooth] svace issue fixed." into tizensubmit/tizen_wearable/20160328.061957submit/tizen_wearable/20160325.075408submit/tizen_tv/20160328.061952submit/tizen_tv/20160325.075401submit/tizen_mobile/20160328.061918submit/tizen_mobile/20160325.075326accepted/tizen/wearable/20160405.013703accepted/tizen/wearable/20160325.134028accepted/tizen/tv/20160405.013537accepted/tizen/tv/20160325.133942accepted/tizen/mobile/20160405.013314accepted/tizen/mobile/20160325.133841
-rwxr-xr-x | test/bt_unit_test.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/test/bt_unit_test.c b/test/bt_unit_test.c index 2eba166..c2a6e61 100755 --- a/test/bt_unit_test.c +++ b/test/bt_unit_test.c @@ -2303,7 +2303,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) { @@ -2332,7 +2332,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) { @@ -2376,7 +2376,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) { @@ -6928,7 +6928,6 @@ int main() { GIOChannel *key_io; -// g_type_init(); current_tc_table = BT_UNIT_TEST_TABLE_MAIN; key_io = g_io_channel_unix_new(fileno(stdin)); |