]> git.ipfire.org Git - thirdparty/mlmmj.git/commitdiff
why, why, why? BECAUSE you have to learn to add parenthesises
authormmj <none@none>
Thu, 9 Sep 2004 01:26:56 +0000 (11:26 +1000)
committermmj <none@none>
Thu, 9 Sep 2004 01:26:56 +0000 (11:26 +1000)
src/do_all_the_voodo_here.c

index 556063d464bc7ea53ef18c05a3c592af68d993da..fb01d6b949c2a0bd302feb8131311a18956957d2 100644 (file)
@@ -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? */