forked from enlightenment/efl
edje/edje_cc: use strncpy() instead of strcpy().
strncpy() is better for security. Also, this change avoids annoying coverity detection.
This commit is contained in:
parent
ff7511ae12
commit
ab1a72f5e7
|
@ -391,7 +391,7 @@ next_token(char *p, char *end, char **new_p, int *delim)
|
|||
l = sscanf(tmpstr, "%*s %i \"%[^\"]\"", &nm, fl);
|
||||
if (l == 2)
|
||||
{
|
||||
strcpy(file_buf, fl);
|
||||
strncpy(file_buf, fl, sizeof(file_buf));
|
||||
line = nm;
|
||||
file_in = file_buf;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue