aboutsummaryrefslogtreecommitdiffstats
path: root/src/bin/edje
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2018-11-08 14:33:19 +0000
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2018-11-09 11:44:00 +0000
commit906183f2cd056b9a59495df63ec07afe59eb950b (patch)
tree3831cdaa7a73e53ad460b0c6ec027e7ad0ac4207 /src/bin/edje
parentedje_cc_parse - warn - make buffers bigger to avoid truncation (diff)
downloadefl-906183f2cd056b9a59495df63ec07afe59eb950b.tar.gz
edje_cc_parse - use memcpy instead of strncpy as we are truncating
we mean it here so it's right - use memcpy as its equivalent without warnings.
Diffstat (limited to 'src/bin/edje')
-rw-r--r--src/bin/edje/edje_cc_parse.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bin/edje/edje_cc_parse.c b/src/bin/edje/edje_cc_parse.c
index 7c3ae44b8c..3d9842c764 100644
--- a/src/bin/edje/edje_cc_parse.c
+++ b/src/bin/edje/edje_cc_parse.c
@@ -391,7 +391,7 @@ next_token(char *p, char *end, char **new_p, int *delim)
}
l = pp - p;
tmpstr = alloca(l + 1);
- strncpy(tmpstr, p, l);
+ memcpy(tmpstr, p, l);
tmpstr[l] = 0;
if (l >= (int)sizeof(fl))
{