now include stdlib.h
This commit is contained in:
@@ -31,6 +31,9 @@ static char rcsid[] = "$Id$";
|
|||||||
|
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
#ifdef STDC_HEADERS
|
||||||
|
#include <stdlib.h>
|
||||||
|
#endif /* STDC_HEADERS */
|
||||||
#ifdef HAVE_UNISTD_H
|
#ifdef HAVE_UNISTD_H
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#endif /* HAVE_UNISTD_H */
|
#endif /* HAVE_UNISTD_H */
|
||||||
@@ -335,10 +338,10 @@ int nslots;
|
|||||||
{
|
{
|
||||||
aliasinfo *aip;
|
aliasinfo *aip;
|
||||||
if (nslots == 0)
|
if (nslots == 0)
|
||||||
aip = (aliasinfo *) malloc(MOREALIASES * sizeof(*aip));
|
aip = (aliasinfo *) malloc(MOREALIASES * sizeof(aliasinfo));
|
||||||
else
|
else
|
||||||
aip = (aliasinfo *) realloc(aliases,
|
aip = (aliasinfo *) realloc(aliases,
|
||||||
(nslots + MOREALIASES) * sizeof(*aip));
|
(nslots + MOREALIASES) * sizeof(aliasinfo));
|
||||||
|
|
||||||
if (aip != NULL) {
|
if (aip != NULL) {
|
||||||
aliases = aip;
|
aliases = aip;
|
||||||
|
Reference in New Issue
Block a user