summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Dransfeld <sebastian.dransfeld@sintef.no>2013-10-14 11:54:51 +0200
committerSebastian Dransfeld <sebastian.dransfeld@sintef.no>2013-10-14 11:54:51 +0200
commit7f303060311e7e209f8acdc62101fa5064be389c (patch)
treea0293b571fb95bddb41116f9a7315604bb74121d
parent56e71e05bb39b90f71f5bfdedcc8211c542ee176 (diff)
efreet: Always '\0' terminate buf
CID 1039721
-rw-r--r--src/lib/efreet/efreet_trash.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lib/efreet/efreet_trash.c b/src/lib/efreet/efreet_trash.c
index 1301b831b9..e7592473fd 100644
--- a/src/lib/efreet/efreet_trash.c
+++ b/src/lib/efreet/efreet_trash.c
@@ -111,6 +111,7 @@ efreet_trash_dir_get(const char *file)
111 if (s_src.st_dev == s_dest.st_dev) 111 if (s_src.st_dev == s_dest.st_dev)
112 { 112 {
113 strncpy(buf, dir, PATH_MAX); 113 strncpy(buf, dir, PATH_MAX);
114 buf[PATH_MAX - 1] = 0;
114 continue; 115 continue;
115 } 116 }
116 else 117 else