forked from enlightenment/efl
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.
This commit is contained in:
parent
1a782c9318
commit
b8b2253f85
|
@ -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))
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue