summaryrefslogtreecommitdiff
path: root/src/bin
diff options
context:
space:
mode:
authorCedric BAIL <cedric.bail@samsung.com>2014-03-05 12:14:40 +0900
committerCedric BAIL <cedric.bail@samsung.com>2014-03-05 12:14:40 +0900
commitadd9540b1cc2deb3b3015f89b804e0266bba8a29 (patch)
tree4c80316d31ecb4a2ff863b32f5099c737473f85b /src/bin
parentbe25ab6f85ba89c94fcce987863ac2a295f13950 (diff)
edje: fix edje_watch to not pass the '\n' to eio_monitor.
Eina_File line iterator does give the length of the line including the '\n'. We did previously ignore that and passed the '\n' down to eio_monitor. Obviously it would fail to monitor a PATH that finished with a '\n' and edje_watch did stop working. I guess nobody did any real testing with edje watch in the past year. @fix
Diffstat (limited to 'src/bin')
-rw-r--r--src/bin/edje/edje_watch.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bin/edje/edje_watch.c b/src/bin/edje/edje_watch.c
index b4e74554ab..3ade5f3244 100644
--- a/src/bin/edje/edje_watch.c
+++ b/src/bin/edje/edje_watch.c
@@ -53,7 +53,7 @@ read_watch_file(const char *file)
53 } 53 }
54 else 54 else
55 { 55 {
56 path = eina_stringshare_add_length(ln->start, ln->length); 56 path = eina_stringshare_add_length(ln->start, ln->length - 1);
57 } 57 }
58 if (do_append) 58 if (do_append)
59 r = eina_list_append(r, eio_monitor_add(path)); 59 r = eina_list_append(r, eio_monitor_add(path));