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:
Carsten Haitzler 2018-11-07 15:17:14 +00:00
parent 1a782c9318
commit b8b2253f85
1 changed files with 1 additions and 1 deletions

View File

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