diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2011-10-08 12:20:09 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2011-10-08 12:20:09 +0000 |
commit | c96f61ac66dfd38d738c147f2e7efe6aaf467a07 (patch) | |
tree | e2850c937bb86f7794aa03da08e3c4c299b4c496 | |
parent | 883b5b98624dbbe866921a6a986a1e617463fc8c (diff) | |
download | mandoc-c96f61ac66dfd38d738c147f2e7efe6aaf467a07.tar.gz |
Use mandoc_realloc() in apropos, as we're linking to libmandoc.a.
-rw-r--r-- | apropos.c | 5 |
1 files changed, 1 insertions, 4 deletions
@@ -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); } /* |