Fix savce issue from SVACE tool version 2.2 64/100664/1 accepted/tizen/common/20161130.070724 accepted/tizen/ivi/20161130.232117 accepted/tizen/mobile/20161130.232026 accepted/tizen/unified/20170309.033748 accepted/tizen/wearable/20161130.232057 submit/tizen/20161130.024245 submit/tizen_unified/20170308.100409
authorsinikang <sinikang@samsung.com>
Tue, 29 Nov 2016 02:18:20 +0000 (11:18 +0900)
committersinikang <sinikang@samsung.com>
Tue, 29 Nov 2016 02:18:20 +0000 (11:18 +0900)
Change-Id: Ia694494471bf835ecb44059db59e6559dd42bd44

packaging/tel-plugin-nitz.spec
src/time_update.c

index 8169f07..fbf657e 100644 (file)
@@ -3,7 +3,7 @@
 
 %define major 0
 %define minor 1
-%define patchlevel 76
+%define patchlevel 77
 
 Name:       tel-plugin-nitz
 Summary:    nitz plugin for telephony
index 8897b5d..d010ec6 100644 (file)
@@ -288,7 +288,7 @@ static gboolean __update_timezone(const struct tnoti_network_timeinfo *ti,
        char mcc_str[4] = {0,};
        gboolean ret = FALSE;
 
-       memcpy(mcc_str, ti->plmn, 3);
+       snprintf(mcc_str, 4, "%s", ti->plmn);
        mcc = atoi(mcc_str);
 
        /*