forked from enlightenment/efl
Evas textblock: started using the new eina_unicode_strndup.
SVN revision: 56808
This commit is contained in:
parent
9fcf0b3c46
commit
cb2587c8f6
|
@ -2733,12 +2733,7 @@ _layout_text_append(Ctxt *c, Evas_Object_Textblock_Format *fmt, Evas_Object_Text
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
str = eina_ustrbuf_string_get(n->unicode);
|
str = eina_ustrbuf_string_get(n->unicode);
|
||||||
alloc_str = eina_unicode_strdup(str + start);
|
alloc_str = eina_unicode_strndup(str + start, off);
|
||||||
|
|
||||||
if (off > 0)
|
|
||||||
{
|
|
||||||
alloc_str[off] = 0;
|
|
||||||
}
|
|
||||||
str = alloc_str;
|
str = alloc_str;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue