From: barbieri Date: Sun, 21 Dec 2008 06:45:09 +0000 (+0000) Subject: oops, eina_stringshare_strlen() should never account '\0'. X-Git-Tag: 2.0_alpha~70^2~1080 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=43334b83ba2c7b057cf558f5505c236e2dc0c537;p=framework%2Fuifw%2Feina.git oops, eina_stringshare_strlen() should never account '\0'. git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/eina@38260 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- diff --git a/src/lib/eina_stringshare.c b/src/lib/eina_stringshare.c index 395e38c..bece0c0 100644 --- a/src/lib/eina_stringshare.c +++ b/src/lib/eina_stringshare.c @@ -1112,7 +1112,7 @@ eina_stringshare_strlen(const char *str) if (str[3] == '\0') return 3; node = _eina_stringshare_node_from_str(str); - return node->length; + return node->length - 1; } struct dumpinfo