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
This commit is contained in:
Cedric BAIL 2014-03-05 12:14:40 +09:00
parent be25ab6f85
commit add9540b1c
1 changed files with 1 additions and 1 deletions

View File

@ -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));