Fix Asan build error 65/233665/1 accepted/tizen_6.0_unified accepted/tizen_6.0_unified_hotfix accepted/tizen_6.5_unified tizen_6.0 tizen_6.0_hotfix tizen_6.5 accepted/tizen/6.0/unified/20201030.114304 accepted/tizen/6.0/unified/hotfix/20201103.002551 accepted/tizen/6.5/unified/20211028.120946 accepted/tizen/unified/20200528.132912 submit/tizen/20200527.011828 submit/tizen_6.0/20201029.205105 submit/tizen_6.0_hotfix/20201102.192505 submit/tizen_6.0_hotfix/20201103.114805 submit/tizen_6.5/20211028.162501 tizen_6.0.m2_release tizen_6.5.m2_release
authorsinikang <sinikang@samsung.com>
Mon, 18 May 2020 06:30:55 +0000 (15:30 +0900)
committersinikang <sinikang@samsung.com>
Mon, 18 May 2020 06:30:55 +0000 (15:30 +0900)
 - fix stringop-truncation error

Change-Id: Id2951bf7cf3f87899ae54954396706fe5c957d6a
Signed-off-by: sinikang <sinikang@samsung.com>
packaging/tel-plugin-nitz.spec
src/time_update.c

index 169bdd9..c25c5b7 100644 (file)
@@ -3,7 +3,7 @@
 
 %define major 0
 %define minor 1
-%define patchlevel 81
+%define patchlevel 82
 
 Name:       tel-plugin-nitz
 Summary:    nitz plugin for telephony
index ac06fcb..236da60 100644 (file)
@@ -289,7 +289,7 @@ static gboolean __update_timezone(const struct tnoti_network_timeinfo *ti,
        char mcc_str[4] = {0,};
        gboolean ret = FALSE;
 
-       stpncpy(mcc_str, ti->plmn, 3);
+       memcpy(mcc_str, ti->plmn, 3);
        mcc = atoi(mcc_str);
 
        /*