summaryrefslogtreecommitdiff
path: root/src/lib/ecore_file/ecore_file_monitor_inotify.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/ecore_file/ecore_file_monitor_inotify.c')
-rw-r--r--src/lib/ecore_file/ecore_file_monitor_inotify.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lib/ecore_file/ecore_file_monitor_inotify.c b/src/lib/ecore_file/ecore_file_monitor_inotify.c
index 374d709265..fa214213e8 100644
--- a/src/lib/ecore_file/ecore_file_monitor_inotify.c
+++ b/src/lib/ecore_file/ecore_file_monitor_inotify.c
@@ -126,6 +126,7 @@ ecore_file_monitor_backend_add(const char *path,
126 126
127 len = strlen(path); 127 len = strlen(path);
128 path2 = alloca(len + 1); 128 path2 = alloca(len + 1);
129 strcpy(path2, path);
129 if (path2[len - 1] == '/' && strcmp(path2, "/")) path2[len - 1] = 0; 130 if (path2[len - 1] == '/' && strcmp(path2, "/")) path2[len - 1] = 0;
130 em->path = eina_stringshare_add(path2); 131 em->path = eina_stringshare_add(path2);
131 132