Subject: Re: libc.112 vs perl/spamassassin problems
To: None <email@example.com>
From: Geoff Wing <firstname.lastname@example.org>
Date: 02/25/2004 04:46:44
Takahiro Kambe <email@example.com> typed:
: This patch seems to solve the problem.
:- pd->aliases = malloc(pd->maxaliases = 10);
:+ pd->maxaliases = 10;
:+ pd->aliases = malloc(pd->maxaliases * sizeof(char **));
aliases is a char ** so malloc() and realloc() should properly be multiplying
by sizeof(char *) not sizeof(char **) . Same goes for the other usages in
the patch (which seems to have been checked in as submitted). Right?