This reverts commit
f52f5628916f44a6b8ce1fdd3b9cc40f6c997eda.
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.
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;