Fix format-truncation warning for gcc 9 52/220952/1 accepted/tizen/unified/20191227.142733 submit/tizen/20191226.234511
authorSemun Lee <semun.lee@samsung.com>
Thu, 26 Dec 2019 05:18:43 +0000 (14:18 +0900)
committerSemun Lee <semun.lee@samsung.com>
Thu, 26 Dec 2019 05:18:43 +0000 (14:18 +0900)
Just increased the size of buffer

Change-Id: I62ba8ad3a5c65f9679bc1e206ff871bb956c59e6
Signed-off-by: Semun Lee <semun.lee@samsung.com>
src/manager/net_nfc_app_util.c

index 72068dafbc8392df2edaa8b3ac59a843563a1d34..040ec7b64e69c4a4fac31df940ab2c6630776ef7 100644 (file)
@@ -821,7 +821,7 @@ int net_nfc_app_util_launch_se_transaction_app(net_nfc_se_type_e se_type, uint8_
        /* convert aid to aid string */
        if (aid != NULL && aid_len > 0) {
                char temp_string[1024] = { 0, };
-               char aid_string[1024] = { 0, };
+               char aid_string[1280] = { 0, };
                data_s temp = { aid, aid_len };
 
                net_nfc_util_binary_to_hex_string(&temp, temp_string, sizeof(temp_string));
@@ -876,7 +876,7 @@ int net_nfc_app_util_launch_se_off_host_apdu_service_app(net_nfc_se_type_e se_ty
        /* convert aid to aid string */
        if (aid != NULL && aid_len > 0) {
                char temp_string[1024] = { 0, };
-               char aid_string[1024] = { 0, };
+               char aid_string[1280] = { 0, };
                data_s temp = { aid, aid_len };
 
                net_nfc_util_binary_to_hex_string(&temp, temp_string, sizeof(temp_string));