summaryrefslogtreecommitdiff
path: root/src/lib/ecore_file/ecore_file_monitor_win32.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/ecore_file/ecore_file_monitor_win32.c')
-rw-r--r--src/lib/ecore_file/ecore_file_monitor_win32.c1
1 files changed, 1 insertions, 0 deletions
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