forked from enlightenment/efl
elm_prefs.c: used strncpy for the fixed size array copy.
This fixes 'copy into fixed size buffer' issue which was spotted by coverity. CID 1039998.
This commit is contained in:
parent
7bbcf8a271
commit
2160622fc5
|
@ -333,7 +333,7 @@ _elm_prefs_item_node_by_name(Elm_Prefs_Smart_Data *sd,
|
|||
char *token;
|
||||
char *aux = buf;
|
||||
|
||||
strcpy(buf, name);
|
||||
strncpy(buf, name, PATH_MAX);
|
||||
|
||||
token = strsep(&aux, ":");
|
||||
|
||||
|
|
Loading…
Reference in New Issue