From d5c34a4bb990931bc7fe36e04b2f47fb745a467e Mon Sep 17 00:00:00 2001 From: tasn Date: Thu, 12 Aug 2010 09:35:53 +0000 Subject: [PATCH] Evas: textblock - made _format_fill faster. git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/evas@51032 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- src/lib/canvas/evas_object_textblock.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/lib/canvas/evas_object_textblock.c b/src/lib/canvas/evas_object_textblock.c index 7926738..5338da8 100644 --- a/src/lib/canvas/evas_object_textblock.c +++ b/src/lib/canvas/evas_object_textblock.c @@ -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); -- 2.7.4