Revert "eina: eina_file - fix "invalid read of size 1" in valgrind"

This reverts commit f52f562891.

This is reverted because it breaks eina_file_path_sanitize when using
  "/../" in paths, for example:
eina_file_path_sanitize("/home/../mydir/myfile")
  returns: "/mydir/myfili"

What invalid read size does this fix? Why was no test case specified?
Anyway, this change affects too much code to leave it in like this.
This commit is contained in:
Daniel Hirt 2015-02-02 14:10:04 +02:00
parent 1051328256
commit 7cbf22212f
1 changed files with 1 additions and 1 deletions

View File

@ -88,7 +88,7 @@ _eina_file_escape(char *path, size_t len)
char tmp;
len -= p + 3 - q;
memmove(q, p + 3, len - (q - result) - 1);
memmove(q, p + 3, len - (q - result));
result[len] = '\0';
p = q;