jaehyun pushed a commit to branch master.

http://git.enlightenment.org/tools/enventor.git/commit/?id=6ad27f9fbe57a7c7a4a5b61a5245aa12222c1a69

commit 6ad27f9fbe57a7c7a4a5b61a5245aa12222c1a69
Author: taehyub <taehyub....@samsung.com>
Date:   Mon Mar 7 20:18:38 2016 +0900

    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
---
 src/bin/newfile.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/bin/newfile.c b/src/bin/newfile.c
index 17e00ca..f8690f1 100644
--- a/src/bin/newfile.c
+++ b/src/bin/newfile.c
@@ -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;

-- 


Reply via email to