Fix svace issues 74/87874/1
authorDoHyun Pyun <dh79.pyun@samsung.com>
Mon, 12 Sep 2016 02:46:25 +0000 (11:46 +0900)
committerDoHyun Pyun <dh79.pyun@samsung.com>
Mon, 12 Sep 2016 02:46:55 +0000 (11:46 +0900)
Change-Id: Ibffd1dedc8c08faab8cc3ac3a3d6caec61bada1a
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
src/bluetooth-audio.c
test/bt_unit_test.c

index 4a58c98..387b797 100644 (file)
@@ -799,7 +799,6 @@ int bt_call_list_add(bt_call_list_h list, unsigned int call_id, bt_ag_call_state
        BT_CHECK_INIT_STATUS();
        BT_CHECK_AG_INIT_STATUS();
        BT_CHECK_INPUT_PARAMETER(list);
-       BT_CHECK_INPUT_PARAMETER(phone_number);
 
        handle = (call_list_s *)list;
        call_status = g_malloc0(sizeof(bt_telephony_call_status_info_t));
index ea8119c..9acbb44 100644 (file)
@@ -3994,7 +3994,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) {
@@ -4035,7 +4035,7 @@ int test_set_params(int test_id, char *param)
                                g_test_param.params[param_index - 1] = g_malloc0(len + 1);
                                /* Remove new line character */
                                param[len - 1] = '\0';
-                               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) {
@@ -4062,7 +4062,7 @@ int test_set_params(int test_id, char *param)
                                g_test_param.params[param_index - 1] = g_malloc0(len + 1);
                                /* Remove new line character */
                                param[len - 1] = '\0';
-                               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) {
@@ -4097,7 +4097,7 @@ int test_set_params(int test_id, char *param)
                                g_test_param.params[param_index - 1] = g_malloc0(len + 1);
                                /* Remove new line character */
                                param[len - 1] = '\0';
-                       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) {