raster pushed a commit to branch master.

http://git.enlightenment.org/core/enlightenment.git/commit/?id=126f155179b5dbc5a27f4258faa7780852e7affb

commit 126f155179b5dbc5a27f4258faa7780852e7affb
Author: Carsten Haitzler (Rasterman) <ras...@rasterman.com>
Date:   Fri Jan 11 11:46:50 2019 +0000

    warn - dont use strncpy that leads to warns - memcpy instead
    
    code was fine - it just causes warnings.
---
 src/bin/e_fm.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/bin/e_fm.c b/src/bin/e_fm.c
index 92d581943..256c38e4e 100644
--- a/src/bin/e_fm.c
+++ b/src/bin/e_fm.c
@@ -5896,7 +5896,7 @@ _e_fm2_typebuf_match(Evas_Object *obj, int next)
    if (sd->typebuf.buf[tblen - 1] != '*')
      {
         tb = alloca(tblen + 2);
-        strncpy(tb, sd->typebuf.buf, tblen);
+        memcpy(tb, sd->typebuf.buf, tblen);
         tb[tblen] = '*';
         tb[tblen + 1] = '\0';
      }

-- 


Reply via email to