From dace50532d5401ab819fd264bb7dfaf10a37b20b Mon Sep 17 00:00:00 2001 From: sinikang Date: Tue, 29 Nov 2016 11:18:20 +0900 Subject: [PATCH] Fix savce issue from SVACE tool version 2.2 Change-Id: Ia694494471bf835ecb44059db59e6559dd42bd44 --- packaging/tel-plugin-nitz.spec | 2 +- src/time_update.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packaging/tel-plugin-nitz.spec b/packaging/tel-plugin-nitz.spec index 8169f07..fbf657e 100644 --- a/packaging/tel-plugin-nitz.spec +++ b/packaging/tel-plugin-nitz.spec @@ -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 diff --git a/src/time_update.c b/src/time_update.c index 8897b5d..d010ec6 100644 --- a/src/time_update.c +++ b/src/time_update.c @@ -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); /* -- 2.7.4