diff options
Diffstat (limited to 'miscutils/man.c')
-rw-r--r-- | miscutils/man.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/miscutils/man.c b/miscutils/man.c index bf13ab527..278e5a336 100644 --- a/miscutils/man.c +++ b/miscutils/man.c | |||
@@ -82,7 +82,7 @@ int man_main(int argc ATTRIBUTE_UNUSED, char **argv) | |||
82 | 82 | ||
83 | sec_list = xstrdup("1:2:3:4:5:6:7:8:9"); | 83 | sec_list = xstrdup("1:2:3:4:5:6:7:8:9"); |
84 | alloc_mp = 10; | 84 | alloc_mp = 10; |
85 | man_path_list = xmalloc(10 * sizeof(man_path_list[0])); | 85 | man_path_list = xmalloc(10 * sizeof(man_path_list[0])); |
86 | count_mp = 0; | 86 | count_mp = 0; |
87 | man_path_list[0] = xstrdup(getenv("MANPATH")); | 87 | man_path_list[0] = xstrdup(getenv("MANPATH")); |
88 | if (man_path_list[0]) | 88 | if (man_path_list[0]) |
@@ -137,8 +137,8 @@ int man_main(int argc ATTRIBUTE_UNUSED, char **argv) | |||
137 | 137 | ||
138 | char *man_filename = xasprintf("%.*s/man%.*s/%s.%.*s" ".bz2", | 138 | char *man_filename = xasprintf("%.*s/man%.*s/%s.%.*s" ".bz2", |
139 | path_len, cur_path, | 139 | path_len, cur_path, |
140 | sect_len, cur_sect, | 140 | sect_len, cur_sect, |
141 | *argv, | 141 | *argv, |
142 | sect_len, cur_sect); | 142 | sect_len, cur_sect); |
143 | int found = show_manpage(pager, man_filename); | 143 | int found = show_manpage(pager, man_filename); |
144 | free(man_filename); | 144 | free(man_filename); |