jaehyun pushed a commit to branch master.

http://git.enlightenment.org/tools/enventor.git/commit/?id=1a0f3c7e1d56e959c5e08a4ef9d5a50769aed140

commit 1a0f3c7e1d56e959c5e08a4ef9d5a50769aed140
Author: taehyub <taehyub....@samsung.com>
Date:   Mon Mar 7 20:21:27 2016 +0900

    config_data: 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/D3772
---
 src/bin/config_data.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/bin/config_data.c b/src/bin/config_data.c
index 810a5de..bb792ea 100644
--- a/src/bin/config_data.c
+++ b/src/bin/config_data.c
@@ -190,7 +190,7 @@ config_load(void)
 
    if (!cd->img_path_list)
      {
-        sprintf(buf, "%s/images", elm_app_data_dir_get());
+        snprintf(buf, sizeof(buf), "%s/images", elm_app_data_dir_get());
         config_img_path_set(buf);
      }
    else cd->img_path_buf =
@@ -198,7 +198,7 @@ config_load(void)
 
    if (!cd->snd_path_list)
      {
-        sprintf(buf, "%s/sounds", elm_app_data_dir_get());
+        snprintf(buf, sizeof(buf), "%s/sounds", elm_app_data_dir_get());
         config_snd_path_set(buf);
      }
    else cd->snd_path_buf =
@@ -206,7 +206,7 @@ config_load(void)
 
    if (!cd->fnt_path_list)
      {
-        sprintf(buf, "%s/fonts", elm_app_data_dir_get());
+        snprintf(buf, sizeof(buf), "%s/fonts", elm_app_data_dir_get());
         config_fnt_path_set(buf);
      }
    else cd->fnt_path_buf =
@@ -214,7 +214,7 @@ config_load(void)
 
    if (!cd->dat_path_list)
      {
-        sprintf(buf, "%s/data", elm_app_data_dir_get());
+        snprintf(buf, sizeof(buf), "%s/data", elm_app_data_dir_get());
         config_dat_path_set(buf);
      }
    else cd->dat_path_buf =

-- 


Reply via email to