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:
Romain Perier 2015-01-30 10:49:58 +01:00 committed by Cedric BAIL
parent 96b4cbac7e
commit f52f562891
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));
memmove(q, p + 3, len - (q - result) - 1);
result[len] = '\0';
p = q;