From 81b5be664d072a6ac26b1e64ddc6ea72ec4135b9 Mon Sep 17 00:00:00 2001 From: glima Date: Thu, 5 Aug 2010 22:08:55 +0000 Subject: [PATCH] Oopsies at program code @ edje_edit. Patch by Thiago Masaki. git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/edje@50845 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- src/lib/edje_edit.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/lib/edje_edit.c b/src/lib/edje_edit.c index b24be85..d80b1e6 100644 --- a/src/lib/edje_edit.c +++ b/src/lib/edje_edit.c @@ -4478,7 +4478,7 @@ edje_edit_program_add(Evas_Object *obj, const char *name) /* By default, source and signal are empty, so they fill in nocmp category */ ed->collection->programs.nocmp = realloc(ed->collection->programs.nocmp, - sizeof (Edje_Program*) * ed->collection->programs.nocmp_count); + sizeof (Edje_Program*) * ed->collection->programs.nocmp_count + 1); ed->collection->programs.nocmp[ed->collection->programs.nocmp_count++] = epr; //Init Edje_Program @@ -4595,7 +4595,8 @@ _edje_edit_program_insert(Edje *ed, Edje_Program *p) } *array = realloc(*array, sizeof (Edje_Program *) * (*count + 1)); - *array[(*count)++] = p; + (*array)[(*count)++] = p; + } EAPI Eina_Bool -- 2.7.4