=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/mandoc/man_html.c,v retrieving revision 1.75 retrieving revision 1.76 diff -c -r1.75 -r1.76 *** src/usr.bin/mandoc/man_html.c 2017/01/17 01:47:46 1.75 --- src/usr.bin/mandoc/man_html.c 2017/01/17 15:32:39 1.76 *************** *** 1,4 **** ! /* $OpenBSD: man_html.c,v 1.75 2017/01/17 01:47:46 schwarze Exp $ */ /* * Copyright (c) 2008-2012, 2014 Kristaps Dzonsons * Copyright (c) 2013, 2014, 2015, 2017 Ingo Schwarze --- 1,4 ---- ! /* $OpenBSD: man_html.c,v 1.76 2017/01/17 15:32:39 schwarze Exp $ */ /* * Copyright (c) 2008-2012, 2014 Kristaps Dzonsons * Copyright (c) 2013, 2014, 2015, 2017 Ingo Schwarze *************** *** 170,183 **** static void print_man_head(MAN_ARGS) { print_gen_head(h); ! assert(man->title); ! assert(man->msec); ! bufinit(h); ! bufcat_fmt(h, "%s(%s)", man->title, man->msec); print_otag(h, TAG_TITLE, ""); ! print_text(h, h->buf); } static void --- 170,182 ---- static void print_man_head(MAN_ARGS) { + char *cp; print_gen_head(h); ! mandoc_asprintf(&cp, "%s(%s)", man->title, man->msec); print_otag(h, TAG_TITLE, ""); ! print_text(h, cp); ! free(cp); } static void