forked from enlightenment/efl
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:
parent
be25ab6f85
commit
add9540b1c
|
@ -53,7 +53,7 @@ read_watch_file(const char *file)
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
path = eina_stringshare_add_length(ln->start, ln->length);
|
path = eina_stringshare_add_length(ln->start, ln->length - 1);
|
||||||
}
|
}
|
||||||
if (do_append)
|
if (do_append)
|
||||||
r = eina_list_append(r, eio_monitor_add(path));
|
r = eina_list_append(r, eio_monitor_add(path));
|
||||||
|
|
Loading…
Reference in New Issue