Fix savce issue from SVACE tool version 2.2 39/100739/1 accepted/tizen_3.0.m2_mobile accepted/tizen_3.0.m2_wearable tizen_3.0.m2 accepted/tizen/3.0.m2/mobile/20170104.141737 accepted/tizen/3.0.m2/wearable/20170104.142419 accepted/tizen/3.0/common/20161130.133709 accepted/tizen/3.0/ivi/20161130.091510 accepted/tizen/3.0/mobile/20161130.091442 accepted/tizen/3.0/wearable/20161130.091502 submit/tizen_3.0.m2/20170104.093751 submit/tizen_3.0/20161130.044335
authorsinikang <sinikang@samsung.com>
Tue, 29 Nov 2016 02:18:20 +0000 (11:18 +0900)
committersinikang <sinikang@samsung.com>
Tue, 29 Nov 2016 06:09:09 +0000 (15:09 +0900)
Change-Id: Ia694494471bf835ecb44059db59e6559dd42bd44

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

index 80a5ff3..9086086 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);
 
        /*