Fix the ASAN build error 09/242809/2 accepted/tizen/unified/20200902.011932 submit/tizen/20200901.064937
authorWootak Jung <wootak.jung@samsung.com>
Tue, 1 Sep 2020 03:29:37 +0000 (12:29 +0900)
committerWootak Jung <wootak.jung@samsung.com>
Tue, 1 Sep 2020 06:27:16 +0000 (15:27 +0900)
Change-Id: I65cf81b8f8a148184b4907ced548a23306c74a78
Signed-off-by: Wootak Jung <wootak.jung@samsung.com>
tests/main.c

index e09cf89817b1f960c4bfb2b4439148cd29b74c49..02c6c96e7b2790b23947e3631063424c65deed61 100644 (file)
@@ -91,12 +91,11 @@ static gboolean __create_sim_selection_menu(struct menu_data sim_selection_menu[
 
        for (i = 0; i < handle_list.count; i++) {
                if (i != 0)
-                       strncat((char *)&sim_selection_menu[0].title[index_count++], ",", sizeof(char));
+                       strcat((char *)&sim_selection_menu[0].title[index_count++], ",");
 
                index_count += snprintf((char *)&sim_selection_menu[0].title[index_count], 100, "%d=SIM%d", i + 1, i + 1);
        }
-       strncat((char *)&sim_selection_menu[0].title[index_count++], ")", sizeof(char));
-       strncat((char *)&sim_selection_menu[0].title[index_count], "\0", sizeof(char));
+       strcat((char *)&sim_selection_menu[0].title[index_count++], ")");
 
        sim_selection_menu[0].key = "1";
        sim_selection_menu[0].sub_menu = NULL;