From 95b6992006d2a4d2eeb4f18fdc7e558934027dbe Mon Sep 17 00:00:00 2001 From: Cedric BAIL Date: Tue, 5 Jul 2011 11:02:28 +0000 Subject: [PATCH] emotion: fix off by one. SVN revision: 61039 --- legacy/emotion/src/lib/emotion_smart.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/legacy/emotion/src/lib/emotion_smart.c b/legacy/emotion/src/lib/emotion_smart.c index 54ee4952fa..6b14811731 100644 --- a/legacy/emotion/src/lib/emotion_smart.c +++ b/legacy/emotion/src/lib/emotion_smart.c @@ -1030,7 +1030,7 @@ _eio_load_xattr_done(void *data, Eio_File *handler, const char *xattr_data, unsi { Smart_Data *sd = data; - if (xattr_size < 128 && xattr_data[xattr_size] == '\0') + if (xattr_size < 128 && xattr_data[xattr_size - 1] == '\0') { long long int m = 0; long int e = 0;