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:
Daniel Juyung Seo 2013-07-06 12:33:52 +09:00
parent 7bbcf8a271
commit 2160622fc5
1 changed files with 1 additions and 1 deletions

View File

@ -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, ":");