aboutsummaryrefslogtreecommitdiffstats
path: root/src/bin/elementary
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2018-11-07 15:17:14 +0000
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2018-11-09 11:43:59 +0000
commitb8b2253f85a99763fd8a990cc6fe8a73f01eae0c (patch)
treebb110aa1aaf4eaba915201ea857bb3f9bcdfc39c /src/bin/elementary
parenteolain generation test - handle buffer size limit warnings (diff)
downloadefl-b8b2253f85a99763fd8a990cc6fe8a73f01eae0c.tar.gz
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.
Diffstat (limited to 'src/bin/elementary')
-rw-r--r--src/bin/elementary/elm_prefs_cc_parse.c2
1 files changed, 1 insertions, 1 deletions
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))
{