summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2011-10-08 12:20:09 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2011-10-08 12:20:09 +0000
commitc96f61ac66dfd38d738c147f2e7efe6aaf467a07 (patch)
treee2850c937bb86f7794aa03da08e3c4c299b4c496
parent883b5b98624dbbe866921a6a986a1e617463fc8c (diff)
downloadmandoc-c96f61ac66dfd38d738c147f2e7efe6aaf467a07.tar.gz
Use mandoc_realloc() in apropos, as we're linking to libmandoc.a.
-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);
}
/*