summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--apropos.c5
1 files changed, 1 insertions, 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);
}
/*