From: MyoungJune Park Date: Mon, 11 Jul 2016 01:39:32 +0000 (+0900) Subject: replace sprintf with snprintf for secure-coding X-Git-Tag: accepted/tizen/ivi/20160711.031144 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Ftags%2Faccepted%2Ftizen%2Fivi%2F20160711.031144;p=platform%2Fcore%2Fapi%2Fsystem-settings.git replace sprintf with snprintf for secure-coding Change-Id: If544db984dc696f608c4fc3c0902785b49f78e59 Signed-off-by: MyoungJune Park --- diff --git a/src/system_setting_platform.c b/src/system_setting_platform.c index 1a4297e..135c2b1 100644 --- 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]; - sprintf(tz_path, "/usr/share/zoneinfo/%s", vconf_value); + snprintf(tz_path, 1024, "/usr/share/zoneinfo/%s", vconf_value); int is_load = _is_file_accessible(tz_path); if (is_load == 0) {