Evas: textblock - made _format_fill faster.

SVN revision: 51032
This commit is contained in:
Tom Hacohen 2010-08-12 09:35:53 +00:00
parent eda4539c2c
commit 3ec81c0b3e
1 changed files with 1 additions and 4 deletions

View File

@ -1567,11 +1567,8 @@ _format_fill(Evas_Object *obj, Evas_Object_Textblock_Format *fmt, const char *st
if (_format_is_param(item))
{
const char *key = NULL, *val = NULL;
char *tmp = alloca(s - item + 1);
strncpy(tmp, item, s - item);
tmp[s - item] = '\0';
_format_param_parse(tmp, &key, &val);
_format_param_parse(item, &key, &val);
_format_command(obj, fmt, key, val);
eina_stringshare_del(key);
eina_stringshare_del(val);