discomfitor pushed a commit to branch master.

http://git.enlightenment.org/core/enlightenment.git/commit/?id=91eede9577480a2b1ca978ec4fd91b2345b41115

commit 91eede9577480a2b1ca978ec4fd91b2345b41115
Author: Mike Blumenkrantz <zm...@osg.samsung.com>
Date:   Mon Feb 29 09:23:54 2016 -0500

    strcpy -> strncpy in evry files plugin
---
 src/modules/everything/evry_plug_files.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/modules/everything/evry_plug_files.c 
b/src/modules/everything/evry_plug_files.c
index 5b1859d..f2e0f6e 100644
--- a/src/modules/everything/evry_plug_files.c
+++ b/src/modules/everything/evry_plug_files.c
@@ -692,7 +692,7 @@ _fetch(Evry_Plugin *plugin, const char *input)
                {
                   dir = dirname(buf);
                   _folder_item_add(p, dir, prio++);
-                  strcpy(buf, dir);
+                  strncpy(buf, dir, sizeof(buf) - 1);
                }
 
              p->command = CMD_SHOW_PARENT;

-- 


Reply via email to