Subject: Re: libc.112 vs perl/spamassassin problems
To: None <current-users@netbsd.org>
From: Geoff Wing <mason@primenet.com.au>
List: current-users
Date: 02/25/2004 04:46:44
Takahiro Kambe <taca@back-street.net> typed:
: This patch seems to solve the problem.
[...stuff cut...]
:- 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?
Regards,
--
Geoff Wing