aboutsummaryrefslogtreecommitdiff
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 3685be7b6..b1bb1530a 100644
--- a/miscutils/man.c
+++ b/miscutils/man.c
@@ -117,11 +117,7 @@ int man_main(int argc UNUSED_PARAM, char **argv)
117 count_mp++; 117 count_mp++;
118 /* man_path_list is NULL terminated */ 118 /* man_path_list is NULL terminated */
119 man_path_list[count_mp] = NULL; 119 man_path_list[count_mp] = NULL;
120 if (!(count_mp & 0xf)) { /* 0x10, 0x20 etc */ 120 man_path_list = xrealloc_vector(man_path_list, 4, count_mp);
121 /* so that last valid man_path_list[] is [count_mp + 0x10] */
122 man_path_list = xrealloc(man_path_list,
123 (count_mp + 0x11) * sizeof(man_path_list[0]));
124 }
125 } 121 }
126 if (strcmp("MANSECT", line) == 0) { 122 if (strcmp("MANSECT", line) == 0) {
127 free(sec_list); 123 free(sec_list);