summaryrefslogtreecommitdiff
path: root/usr.sbin/config
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2003-09-26 17:01:26 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2003-09-26 17:01:26 +0000
commitafe6975dc6cc1749810caf2951ed3c151119a4d0 (patch)
tree659a92de11e1489fd2aa1847cdd19afd5e529969 /usr.sbin/config
parentb8f26b523ff2b8845782957e48986dc4c9167225 (diff)
use erealloc
Diffstat (limited to 'usr.sbin/config')
-rw-r--r--usr.sbin/config/mkioconf.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/config/mkioconf.c b/usr.sbin/config/mkioconf.c
index 207e0c494dd..cf642a4d47e 100644
--- a/usr.sbin/config/mkioconf.c
+++ b/usr.sbin/config/mkioconf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mkioconf.c,v 1.22 2003/06/28 04:55:07 deraadt Exp $ */
+/* $OpenBSD: mkioconf.c,v 1.23 2003/09/26 17:01:25 deraadt Exp $ */
/* $NetBSD: mkioconf.c,v 1.41 1996/11/11 14:18:49 mycroft Exp $ */
/*
@@ -199,7 +199,7 @@ addlocname(const char *name)
if (locnames == NULL || nlocnames+1 > maxlocnames) {
maxlocnames *= 4;
- locnames = (char **)realloc(locnames, maxlocnames * sizeof(char *));
+ locnames = (char **)erealloc(locnames, maxlocnames * sizeof(char *));
}
for (i = 0; i < nlocnames; i++)
if (strcmp(name, locnames[i]) == 0)
@@ -217,7 +217,7 @@ addlocnami(short index)
{
if (locnami == NULL || nlocnami+1 > maxlocnami) {
maxlocnami *= 4;
- locnami = (short *)realloc(locnami, maxlocnami * sizeof(short));
+ locnami = (short *)erealloc(locnami, maxlocnami * sizeof(short));
}
locnami[nlocnami++] = index;
}