forked from enlightenment/efl
eina: eina_file - fix "invalid read of size 1" in valgrind
@fix Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
This commit is contained in:
parent
96b4cbac7e
commit
f52f562891
|
@ -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));
|
||||
memmove(q, p + 3, len - (q - result) - 1);
|
||||
result[len] = '\0';
|
||||
p = q;
|
||||
|
||||
|
|
Loading…
Reference in New Issue