summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPyun DoHyun <dh79.pyun@samsung.com>2016-03-22 18:48:48 -0700
committerGerrit Code Review <gerrit@review.vlan103.tizen.org>2016-03-22 18:48:48 -0700
commit8584584e1f40f622f30c83b594fef0a9eb708922 (patch)
tree41aeb170b551bc09a72953c44e6ff76a002d9c67
parent8ebd2175e7f0922b3fd9f17e83cbb3aab917c142 (diff)
parent8c0270ca5c9d4fff4751f1f51935b2a677434c0f (diff)
downloadbluetooth-accepted/tizen/wearable/20160405.013703.tar.gz
bluetooth-accepted/tizen/wearable/20160405.013703.tar.bz2
bluetooth-accepted/tizen/wearable/20160405.013703.zip
-rwxr-xr-xtest/bt_unit_test.c7
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));