From 77be3823bab219163ead178ad2719d16ea5ebe77 Mon Sep 17 00:00:00 2001 From: Kristaps Dzonsons Date: Mon, 4 Apr 2011 16:44:56 +0000 Subject: Fix a bug that slip in: PAIR_XXXX macros expanded to run the increment twice. --- mdoc_html.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'mdoc_html.c') diff --git a/mdoc_html.c b/mdoc_html.c index c18ca84f..3039edeb 100644 --- a/mdoc_html.c +++ b/mdoc_html.c @@ -1733,7 +1733,8 @@ mdoc_in_pre(MDOC_ARGS) if (h->base_includes) { buffmt_includes(h, n->string); - PAIR_HREF_INIT(&tag[i++], h->buf); + PAIR_HREF_INIT(&tag[i], h->buf); + i++; } t = print_otag(h, TAG_A, i, tag); -- cgit