/* 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
}
*array = realloc(*array, sizeof (Edje_Program *) * (*count + 1));
- *array[(*count)++] = p;
+ (*array)[(*count)++] = p;
+
}
EAPI Eina_Bool