From add9540b1cc2deb3b3015f89b804e0266bba8a29 Mon Sep 17 00:00:00 2001 From: Cedric BAIL Date: Wed, 5 Mar 2014 12:14:40 +0900 Subject: [PATCH] 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 --- src/bin/edje/edje_watch.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) } else { - path = eina_stringshare_add_length(ln->start, ln->length); + path = eina_stringshare_add_length(ln->start, ln->length - 1); } if (do_append) r = eina_list_append(r, eio_monitor_add(path));