summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid E. O'Brien <obrien@FreeBSD.org>2003-01-06 17:11:46 +0000
committerDavid E. O'Brien <obrien@FreeBSD.org>2003-01-06 17:11:46 +0000
commitefd394684a58e3a3992448f3c399f2fbd2e106cc (patch)
tree9ca94a2b4eb5c81ff9641666bf64ebae7d4332d5
parent5b398f68ee96e7a6b822bed6978bea22bd65bd5d (diff)
Notes
-rw-r--r--usr.sbin/sade/misc.c4
-rw-r--r--usr.sbin/sysinstall/misc.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/usr.sbin/sade/misc.c b/usr.sbin/sade/misc.c
index e485234f8865..07cbc81751d1 100644
--- a/usr.sbin/sade/misc.c
+++ b/usr.sbin/sade/misc.c
@@ -206,7 +206,7 @@ safe_realloc(void *orig, size_t size)
if (size <= 0)
msgFatal("Invalid realloc size of %ld!", (long)size);
- ptr = realloc(orig, size);
+ ptr = reallocf(orig, size);
if (!ptr)
msgFatal("Out of memory!");
return ptr;
@@ -243,7 +243,7 @@ item_add(dialogMenuItem *list, char *prompt, char *title,
if (*curr == *max) {
*max += 20;
- list = (dialogMenuItem *)realloc(list, sizeof(dialogMenuItem) * *max);
+ list = (dialogMenuItem *)safe_realloc(list, sizeof(dialogMenuItem) * *max);
}
d = &list[(*curr)++];
bzero(d, sizeof(*d));
diff --git a/usr.sbin/sysinstall/misc.c b/usr.sbin/sysinstall/misc.c
index e485234f8865..07cbc81751d1 100644
--- a/usr.sbin/sysinstall/misc.c
+++ b/usr.sbin/sysinstall/misc.c
@@ -206,7 +206,7 @@ safe_realloc(void *orig, size_t size)
if (size <= 0)
msgFatal("Invalid realloc size of %ld!", (long)size);
- ptr = realloc(orig, size);
+ ptr = reallocf(orig, size);
if (!ptr)
msgFatal("Out of memory!");
return ptr;
@@ -243,7 +243,7 @@ item_add(dialogMenuItem *list, char *prompt, char *title,
if (*curr == *max) {
*max += 20;
- list = (dialogMenuItem *)realloc(list, sizeof(dialogMenuItem) * *max);
+ list = (dialogMenuItem *)safe_realloc(list, sizeof(dialogMenuItem) * *max);
}
d = &list[(*curr)++];
bzero(d, sizeof(*d));