projects
/
platform
/
core
/
api
/
system-settings.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
replace sprintf with snprintf for secure-coding
[platform/core/api/system-settings.git]
/
src
/
system_setting_platform.c
diff --git
a/src/system_setting_platform.c
b/src/system_setting_platform.c
index
1a4297e
..
135c2b1
100644
(file)
--- a/
src/system_setting_platform.c
+++ b/
src/system_setting_platform.c
@@
-1286,7
+1286,7
@@
int system_setting_set_locale_timezone(system_settings_key_e key, system_setting
vconf_value = (char *)value;
char tz_path[1024];
- s
printf(tz_path
, "/usr/share/zoneinfo/%s", vconf_value);
+ s
nprintf(tz_path, 1024
, "/usr/share/zoneinfo/%s", vconf_value);
int is_load = _is_file_accessible(tz_path);
if (is_load == 0) {