X-Git-Url: http://git.tuebingen.mpg.de/?a=blobdiff_plain;f=mood.c;h=bcc9bc57d1a37520ca71f93d5d93a7fe1e2e2927;hb=910cf7680d7a00daa68ab250003f9d800972fbe5;hp=b3f007b68fe07c46f500d1aaa7dffdfe9503f451;hpb=26243a4b963bc3c59020b0469f1e469025da0ad8;p=paraslash.git diff --git a/mood.c b/mood.c index b3f007b6..bcc9bc57 100644 --- a/mood.c +++ b/mood.c @@ -138,7 +138,7 @@ static void destroy_mood(struct mood *m) static struct mood *alloc_new_mood(const char *name) { - struct mood *m = para_calloc(sizeof(struct mood)); + struct mood *m = zalloc(sizeof(struct mood)); if (name) m->name = para_strdup(name); return m; @@ -363,8 +363,8 @@ static int add_if_admissible(struct osl_row *aft_row, void *data) if (statistics.num >= aa->size) { aa->size *= 2; aa->size += 100; - aa->array = para_realloc(aa->array, - aa->size * sizeof(struct osl_row *)); + aa->array = arr_realloc(aa->array, aa->size, + sizeof(struct osl_row *)); } aa->array[statistics.num] = aft_row; return add_afs_statistics(aft_row);