projects
/
platform
/
core
/
telephony
/
tel-plugin-nitz.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8e7d2ec
)
Fix build warning for gcc 9
83/220983/1
accepted/tizen/unified/20191227.142642
submit/tizen/20191227.083406
author
Semun Lee
<semun.lee@samsung.com>
Thu, 26 Dec 2019 06:42:37 +0000
(15:42 +0900)
committer
Semun Lee
<semun.lee@samsung.com>
Thu, 26 Dec 2019 06:42:37 +0000
(15:42 +0900)
use stpncpy instead of snprintf for copying mcc_str
Change-Id: Ia3012b2c120a86d095a440e581f5f98526bd810e
Signed-off-by: Semun Lee <semun.lee@samsung.com>
src/time_update.c
patch
|
blob
|
history
diff --git
a/src/time_update.c
b/src/time_update.c
index 529b4249d347bf999ed77a18aaa0d0d32d93a8c5..8ef530393638764159744a7ce20571c4f7960c53 100644
(file)
--- 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;
- s
nprintf(mcc_str, 4, "%s", ti->plmn
);
+ s
tpncpy(mcc_str, ti->plmn, 3
);
mcc = atoi(mcc_str);
/*