From 8184edeb09d4e7dd02e8a8cdd189986011dc09e1 Mon Sep 17 00:00:00 2001 From: cedric Date: Tue, 5 Jul 2011 11:02:28 +0000 Subject: [PATCH] emotion: fix off by one. git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/emotion@61039 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- src/lib/emotion_smart.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/emotion_smart.c b/src/lib/emotion_smart.c index 54ee495..6b14811 100644 --- a/src/lib/emotion_smart.c +++ b/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; -- 2.7.4