summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/lib/ecore_file/ecore_file_monitor_inotify.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/lib/ecore_file/ecore_file_monitor_inotify.c b/src/lib/ecore_file/ecore_file_monitor_inotify.c
index bd78f92c50..e21e41c8c4 100644
--- a/src/lib/ecore_file/ecore_file_monitor_inotify.c
+++ b/src/lib/ecore_file/ecore_file_monitor_inotify.c
@@ -199,7 +199,10 @@ _ecore_file_monitor_inotify_events(Ecore_File_Monitor *em, char *file, int mask)
199 if ((file) && (file[0])) 199 if ((file) && (file[0]))
200 snprintf(buf, sizeof(buf), "%s/%s", em->path, file); 200 snprintf(buf, sizeof(buf), "%s/%s", em->path, file);
201 else 201 else
202 strcpy(buf, em->path); 202 {
203 strncpy(buf, em->path, sizeof(buf));
204 buf[PATH_MAX - 1] = 0;
205 }
203 isdir = mask & IN_ISDIR; 206 isdir = mask & IN_ISDIR;
204 207
205#if 0 208#if 0