raster pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=b8b2253f85a99763fd8a990cc6fe8a73f01eae0c

commit b8b2253f85a99763fd8a990cc6fe8a73f01eae0c
Author: Carsten Haitzler (Rasterman) <[email protected]>
Date:   Wed Nov 7 15:17:14 2018 +0000

    elm prefs cc - warn - use memcpy instead since we are really truncating
    
    fix strncpy warning... and use memcpy as we are explicitly truncating.
    we mean it.
---
 src/bin/elementary/elm_prefs_cc_parse.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/bin/elementary/elm_prefs_cc_parse.c 
b/src/bin/elementary/elm_prefs_cc_parse.c
index b86ab64e09..11415e1d86 100644
--- a/src/bin/elementary/elm_prefs_cc_parse.c
+++ b/src/bin/elementary/elm_prefs_cc_parse.c
@@ -277,7 +277,7 @@ next_token(char *p, char *end, char **new_p, int *delim)
                       file_in, line - 1, l + 1);
                   exit(-1);
                }
-             strncpy(tmpstr, p, l);
+             memcpy(tmpstr, p, l);
              tmpstr[l] = 0;
              if (l >= (int)sizeof(fl))
                {

-- 


Reply via email to