summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRomain Perier <romain.perier@openwide.fr>2015-01-30 10:49:58 +0100
committerCedric BAIL <cedric@osg.samsung.com>2015-01-30 10:49:58 +0100
commitf52f5628916f44a6b8ce1fdd3b9cc40f6c997eda (patch)
treea14c9fd9f7a3d5259469d1317d25bbcd5d7a7c88
parent96b4cbac7e4f546518224bde19433a9bc2c87269 (diff)
eina: eina_file - fix "invalid read of size 1" in valgrind
@fix Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
-rw-r--r--src/lib/eina/eina_file_common.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/eina/eina_file_common.c b/src/lib/eina/eina_file_common.c
index 3e5b615c79..6a573da8da 100644
--- a/src/lib/eina/eina_file_common.c
+++ b/src/lib/eina/eina_file_common.c
@@ -88,7 +88,7 @@ _eina_file_escape(char *path, size_t len)
88 char tmp; 88 char tmp;
89 89
90 len -= p + 3 - q; 90 len -= p + 3 - q;
91 memmove(q, p + 3, len - (q - result)); 91 memmove(q, p + 3, len - (q - result) - 1);
92 result[len] = '\0'; 92 result[len] = '\0';
93 p = q; 93 p = q;
94 94