summaryrefslogtreecommitdiffstats
path: root/apropos.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2011-12-31 18:47:52 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2011-12-31 18:47:52 +0000
commitbf6e3f75fa4e2decf43c5157cdb9d823d482de85 (patch)
treeaf2589ebecde6c9ae256276a3b0ffa6850607b12 /apropos.c
parent9ce737999e4dfba3414d61dcd62441d7eb9b21cd (diff)
downloadmandoc-bf6e3f75fa4e2decf43c5157cdb9d823d482de85.tar.gz
When parsing catpages, read from the first section (NAME, we hope) until
the next section. Also, remove the limit of 72 characters and enforce this, instead in the apropos frontend.
Diffstat (limited to 'apropos.c')
-rw-r--r--apropos.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/apropos.c b/apropos.c
index 7ab4873e..8426490c 100644
--- a/apropos.c
+++ b/apropos.c
@@ -127,7 +127,7 @@ list(struct res *res, size_t sz, void *arg)
qsort(res, sz, sizeof(struct res), cmp);
for (i = 0; i < (int)sz; i++)
- printf("%s(%s%s%s) - %s\n", res[i].title,
+ printf("%s(%s%s%s) - %.70s\n", res[i].title,
res[i].cat,
*res[i].arch ? "/" : "",
*res[i].arch ? res[i].arch : "",