Evas textblock: started using the new eina_unicode_strndup.

SVN revision: 56808
This commit is contained in:
Tom Hacohen 2011-02-08 13:44:41 +00:00
parent 9fcf0b3c46
commit cb2587c8f6
1 changed files with 1 additions and 6 deletions

View File

@ -2733,12 +2733,7 @@ _layout_text_append(Ctxt *c, Evas_Object_Textblock_Format *fmt, Evas_Object_Text
else
{
str = eina_ustrbuf_string_get(n->unicode);
alloc_str = eina_unicode_strdup(str + start);
if (off > 0)
{
alloc_str[off] = 0;
}
alloc_str = eina_unicode_strndup(str + start, off);
str = alloc_str;
}
}