forked from enlightenment/efl
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:
parent
24b345bb53
commit
906183f2cd
|
@ -391,7 +391,7 @@ next_token(char *p, char *end, char **new_p, int *delim)
|
||||||
}
|
}
|
||||||
l = pp - p;
|
l = pp - p;
|
||||||
tmpstr = alloca(l + 1);
|
tmpstr = alloca(l + 1);
|
||||||
strncpy(tmpstr, p, l);
|
memcpy(tmpstr, p, l);
|
||||||
tmpstr[l] = 0;
|
tmpstr[l] = 0;
|
||||||
if (l >= (int)sizeof(fl))
|
if (l >= (int)sizeof(fl))
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue