From 0e244a87383ec8bfad4fda8f99e57b5d2311c1cc Mon Sep 17 00:00:00 2001 From: tasn Date: Thu, 28 Jul 2011 09:18:50 +0000 Subject: [PATCH] Evas textblock: Removed useless alloca. git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/evas@61842 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 72d84ae..17760a1 100644 --- a/src/lib/canvas/evas_object_textblock.c +++ b/src/lib/canvas/evas_object_textblock.c @@ -2174,11 +2174,8 @@ static void _layout_format_value_handle(Ctxt *c, Evas_Object_Textblock_Format *fmt, const char *item) { const char *key = NULL, *val = NULL; - char *tmp; - tmp = alloca(strlen(item) + 1); - strcpy(tmp, item); - _format_param_parse(tmp, &key, &val); + _format_param_parse(item, &key, &val); if ((key) && (val)) _format_command(c->obj, fmt, key, val); if (key) eina_stringshare_del(key); if (val) eina_stringshare_del(val); -- 2.7.4