efreet: be paranoid about '\0' termination

CID: #1039721
This commit is contained in:
Sebastian Dransfeld 2013-08-07 11:51:32 +02:00
parent 35a45eb062
commit e011d5e67c
1 changed files with 1 additions and 0 deletions

View File

@ -103,6 +103,7 @@ efreet_trash_dir_get(const char *file)
while (strlen(buf) > 1)
{
strncpy(path, buf, PATH_MAX);
path[PATH_MAX - 1] = 0;
dir = dirname(buf);
if (stat(dir, &s_dest) == 0)