summaryrefslogtreecommitdiff
path: root/miscutils/man.c
diff options
context:
space:
mode:
Diffstat (limited to 'miscutils/man.c')
-rw-r--r--miscutils/man.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/miscutils/man.c b/miscutils/man.c
index 3685be7..b1bb153 100644
--- a/miscutils/man.c
+++ b/miscutils/man.c
@@ -117,11 +117,7 @@ int man_main(int argc UNUSED_PARAM, char **argv)
count_mp++;
/* man_path_list is NULL terminated */
man_path_list[count_mp] = NULL;
- if (!(count_mp & 0xf)) { /* 0x10, 0x20 etc */
- /* so that last valid man_path_list[] is [count_mp + 0x10] */
- man_path_list = xrealloc(man_path_list,
- (count_mp + 0x11) * sizeof(man_path_list[0]));
- }
+ man_path_list = xrealloc_vector(man_path_list, 4, count_mp);
}
if (strcmp("MANSECT", line) == 0) {
free(sec_list);