diff options
Diffstat (limited to 'src/lib/ecore_file')
-rw-r--r-- | src/lib/ecore_file/ecore_file_monitor_inotify.c | 1 | ||||
-rw-r--r-- | src/lib/ecore_file/ecore_file_monitor_poll.c | 1 | ||||
-rw-r--r-- | src/lib/ecore_file/ecore_file_monitor_win32.c | 1 |
3 files changed, 3 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 | ||
diff --git a/src/lib/ecore_file/ecore_file_monitor_poll.c b/src/lib/ecore_file/ecore_file_monitor_poll.c index 16f84194ce..d2034dc7ab 100644 --- a/src/lib/ecore_file/ecore_file_monitor_poll.c +++ b/src/lib/ecore_file/ecore_file_monitor_poll.c | |||
@@ -87,6 +87,7 @@ ecore_file_monitor_backend_add(const char *path, | |||
87 | 87 | ||
88 | len = strlen(path); | 88 | len = strlen(path); |
89 | path2 = alloca(len + 1); | 89 | path2 = alloca(len + 1); |
90 | strcpy(path2, path); | ||
90 | if (path2[len - 1] == '/' && strcmp(path2, "/")) path2[len - 1] = 0; | 91 | if (path2[len - 1] == '/' && strcmp(path2, "/")) path2[len - 1] = 0; |
91 | em->path = eina_stringshare_add(path2); | 92 | em->path = eina_stringshare_add(path2); |
92 | 93 | ||
diff --git a/src/lib/ecore_file/ecore_file_monitor_win32.c b/src/lib/ecore_file/ecore_file_monitor_win32.c index 20f2ad02ad..8a0f92dca7 100644 --- a/src/lib/ecore_file/ecore_file_monitor_win32.c +++ b/src/lib/ecore_file/ecore_file_monitor_win32.c | |||
@@ -259,6 +259,7 @@ ecore_file_monitor_backend_add(const char *path, | |||
259 | 259 | ||
260 | len = strlen(path); | 260 | len = strlen(path); |
261 | path2 = alloca(len + 1); | 261 | path2 = alloca(len + 1); |
262 | strcpy(path2, path); | ||
262 | if (path2[len - 1] == '/' || path2[len - 1] == '\\') path2[len - 1] = 0; | 263 | if (path2[len - 1] == '/' || path2[len - 1] == '\\') path2[len - 1] = 0; |
263 | em->path = eina_stringshare_add(path2); | 264 | em->path = eina_stringshare_add(path2); |
264 | 265 | ||