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:
Hermet Park 2016-09-21 13:30:44 +09:00
parent ff7511ae12
commit ab1a72f5e7
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 = 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;
}