strcpy -> strncpy in evry files plugin

This commit is contained in:
Mike Blumenkrantz 2016-02-29 09:23:54 -05:00
parent 21ab21d551
commit 7a7c57c2b8
1 changed files with 1 additions and 1 deletions

View File

@ -692,7 +692,7 @@ _fetch(Evry_Plugin *plugin, const char *input)
{
dir = dirname(buf);
_folder_item_add(p, dir, prio++);
strcpy(buf, dir);
strncpy(buf, dir, sizeof(buf) - 1);
}
p->command = CMD_SHOW_PARENT;