diff options
author | 2010-06-10 23:24:37 +0000 | |
---|---|---|
committer | 2010-06-10 23:24:37 +0000 | |
commit | 74ba6bc0c8674c837bcc6219e1d4c25c9700791c (patch) | |
tree | 375c8862df0bd8d803e86767727b0dfab8d5248d /mdoc.3 | |
parent | 151317239c987cf45872d3ee4ec105feb30ddcc9 (diff) | |
download | mandoc-74ba6bc0c8674c837bcc6219e1d4c25c9700791c.tar.gz mandoc-74ba6bc0c8674c837bcc6219e1d4c25c9700791c.tar.zst mandoc-74ba6bc0c8674c837bcc6219e1d4c25c9700791c.zip |
Fix a regression that crept in in man_term.c 1.73 and mdoc_term.c 1.144.
When the title line uses special characters, mandoc will segfault.
Thus, first set up the character tables, then print the header,
as we always did.
Found in OpenBSD /usr/src/usr.sbin/bind/bin/check/named-checkconf.8.
While here, set p->tabwidth in terminal_man() for symmetry
with terminal_mdoc(), as suggested by millert@ (and already
committed to OpenBSD earlier). Since 5 is the default, this
is not strictly required, but it is certainly clearer and more
robust.
"looks fine" kristaps@
Diffstat (limited to 'mdoc.3')
0 files changed, 0 insertions, 0 deletions