diff options
Diffstat (limited to 'src/lib/efreet')
-rw-r--r-- | src/lib/efreet/efreet_trash.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lib/efreet/efreet_trash.c b/src/lib/efreet/efreet_trash.c index a392cf1397..1301b831b9 100644 --- a/src/lib/efreet/efreet_trash.c +++ b/src/lib/efreet/efreet_trash.c | |||
@@ -103,6 +103,7 @@ efreet_trash_dir_get(const char *file) | |||
103 | while (strlen(buf) > 1) | 103 | while (strlen(buf) > 1) |
104 | { | 104 | { |
105 | strncpy(path, buf, PATH_MAX); | 105 | strncpy(path, buf, PATH_MAX); |
106 | path[PATH_MAX - 1] = 0; | ||
106 | dir = dirname(buf); | 107 | dir = dirname(buf); |
107 | 108 | ||
108 | if (stat(dir, &s_dest) == 0) | 109 | if (stat(dir, &s_dest) == 0) |