diff options
Diffstat (limited to 'usr.sbin/sysinstall/misc.c')
| -rw-r--r-- | usr.sbin/sysinstall/misc.c | 4 |
1 files changed, 2 insertions, 2 deletions
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)); |
