From c96f61ac66dfd38d738c147f2e7efe6aaf467a07 Mon Sep 17 00:00:00 2001 From: Kristaps Dzonsons Date: Sat, 8 Oct 2011 12:20:09 +0000 Subject: Use mandoc_realloc() in apropos, as we're linking to libmandoc.a. --- apropos.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/apropos.c b/apropos.c index d7a703c5..0b77b34e 100644 --- a/apropos.c +++ b/apropos.c @@ -491,10 +491,7 @@ buf_alloc(char **buf, size_t *bufsz, size_t sz) return; *bufsz = sz + 1024; - if (NULL == (*buf = realloc(*buf, *bufsz))) { - perror(NULL); - exit(EXIT_FAILURE); - } + *buf = mandoc_realloc(*buf, *bufsz); } /* -- cgit