summaryrefslogtreecommitdiffstats
path: root/man_html.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2011-05-17 11:19:45 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2011-05-17 11:19:45 +0000
commitf9e49942b1aa36eb1b9fca3803993ef3224d5f5b (patch)
treef49d32e342a41346b197e73c348d23388d4c97ef /man_html.c
parentc012d60127e5e58e484aa5e2dc50ccc7745cf32b (diff)
downloadmandoc-f9e49942b1aa36eb1b9fca3803993ef3224d5f5b.tar.gz
Clean-ups in -T[x]html: inline print_num(), as it was just a single
conditional; same for print_xmltype() and print_doctype(), same reason; make bufncat() be static, as it was only being called from html.c; have bufcat() simply call through to strlcat(). Finally, assert() whenever we truncate. Also rename buffmt() -> bufcat_fmt() to differentiate from buffmt_man et al., which do not concatenate.
Diffstat (limited to 'man_html.c')
-rw-r--r--man_html.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/man_html.c b/man_html.c
index bc5275b5..6d57a346 100644
--- a/man_html.c
+++ b/man_html.c
@@ -158,7 +158,7 @@ print_man_head(MAN_ARGS)
print_gen_head(h);
bufinit(h);
- buffmt(h, "%s(%s)", m->title, m->msec);
+ bufcat_fmt(h, "%s(%s)", m->title, m->msec);
print_otag(h, TAG_TITLE, 0, NULL);
print_text(h, h->buf);