From cc47d04a0c9d973f79e1c30f9231a4cf2c061a54 Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Wed, 29 Mar 1995 22:38:16 +0000 Subject: [PATCH] now include stdlib.h --- parse.yacc | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/parse.yacc b/parse.yacc index 8468087b7..e38114a46 100644 --- a/parse.yacc +++ b/parse.yacc @@ -31,6 +31,9 @@ static char rcsid[] = "$Id$"; #include "config.h" #include +#ifdef STDC_HEADERS +#include +#endif /* STDC_HEADERS */ #ifdef HAVE_UNISTD_H #include #endif /* HAVE_UNISTD_H */ @@ -335,10 +338,10 @@ int nslots; { aliasinfo *aip; if (nslots == 0) - aip = (aliasinfo *) malloc(MOREALIASES * sizeof(*aip)); + aip = (aliasinfo *) malloc(MOREALIASES * sizeof(aliasinfo)); else aip = (aliasinfo *) realloc(aliases, - (nslots + MOREALIASES) * sizeof(*aip)); + (nslots + MOREALIASES) * sizeof(aliasinfo)); if (aip != NULL) { aliases = aip;