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.
This commit is contained in:
Carsten Haitzler 2018-11-08 14:33:19 +00:00
parent 24b345bb53
commit 906183f2cd
1 changed files with 1 additions and 1 deletions

View File

@ -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))
{