From: mmj Date: Thu, 9 Sep 2004 01:26:56 +0000 (+1000) Subject: why, why, why? BECAUSE you have to learn to add parenthesises X-Git-Tag: RELEASE_1_0_0~4 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3a0432742fd4c19db58cb446d87b180774089bd4;p=thirdparty%2Fmlmmj.git why, why, why? BECAUSE you have to learn to add parenthesises --- diff --git a/src/do_all_the_voodo_here.c b/src/do_all_the_voodo_here.c index 556063d4..fb01d6b9 100644 --- a/src/do_all_the_voodo_here.c +++ b/src/do_all_the_voodo_here.c @@ -119,7 +119,7 @@ int do_all_the_voodo_here(int infd, int outfd, int hdrfd, int footfd, /* Snatch a copy of the header */ allhdrs->count++; allhdrs->strs = myrealloc(allhdrs->strs, - sizeof(char *) * allhdrs->count + 1); + sizeof(char *) * (allhdrs->count + 1)); allhdrs->strs[allhdrs->count-1] = mystrdup(hdrline); allhdrs->strs[allhdrs->count] = NULL; /* XXX why, why, why? */