newfile: change sprintf function to snprintf function

Summary:
change sprintf to snprintf for code safety

@fix

Reviewers: Hermet, NikaWhite, Jaehyun_Cho

Reviewed By: Jaehyun_Cho

Differential Revision: https://phab.enlightenment.org/D3771
This commit is contained in:
taehyub 2016-03-07 20:18:38 +09:00 committed by Jaehyun Cho
parent d4fec9c7d2
commit 6ad27f9fbe
1 changed files with 1 additions and 1 deletions

View File

@ -36,7 +36,7 @@ newfile_set(Eina_Bool template_new)
snprintf(buf, sizeof(buf), "%s/templates/%s.edc",
elm_app_data_dir_get(), elm_object_item_text_get(it));
if (template_new && config_input_path_get())
sprintf(path, "%s", config_input_path_get());
snprintf(path, sizeof(path), "%s", config_input_path_get());
else
{
Eina_Tmpstr *tmp_path;