From fbbc25472601831679614ed9f49966cda8898a5d 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 | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'mdoc_html.c') diff --git a/mdoc_html.c b/mdoc_html.c index b33b82e6..ae27c516 100644 --- a/mdoc_html.c +++ b/mdoc_html.c @@ -1,4 +1,4 @@ -/* $Id: mdoc_html.c,v 1.160 2011/04/04 16:15:58 kristaps Exp $ */ +/* $Id: mdoc_html.c,v 1.161 2011/04/04 16:44:56 kristaps Exp $ */ /* * Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons * @@ -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 v1.2.3-56-ge451