Subject: Re: libc.112 vs perl/spamassassin problems
To: None <firstname.lastname@example.org>
From: Geoff Wing <email@example.com>
Date: 02/25/2004 04:46:44
Takahiro Kambe <firstname.lastname@example.org> 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?