summaryrefslogtreecommitdiffstats
path: root/mdoc_html.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2011-04-04 16:44:56 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2011-04-04 16:44:56 +0000
commit77be3823bab219163ead178ad2719d16ea5ebe77 (patch)
tree3ca9b8788eff1081efcd2d21cab14cfb36f42e60 /mdoc_html.c
parent6f352eb77aabefaf6c1af62970d9f56cea660afd (diff)
downloadmandoc-77be3823bab219163ead178ad2719d16ea5ebe77.tar.gz
Fix a bug that slip in: PAIR_XXXX macros expanded to run the increment
twice.
Diffstat (limited to 'mdoc_html.c')
-rw-r--r--mdoc_html.c3
1 files changed, 2 insertions, 1 deletions
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);