summaryrefslogtreecommitdiffstatshomepage
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
commitfbbc25472601831679614ed9f49966cda8898a5d (patch)
tree7384130dde6a4d0c41e225d72c85f99efba2ccc6
parent8cd14fd71e9c955ff37349652f455dca31e49c36 (diff)
downloadmandoc-fbbc25472601831679614ed9f49966cda8898a5d.tar.gz
mandoc-fbbc25472601831679614ed9f49966cda8898a5d.tar.zst
mandoc-fbbc25472601831679614ed9f49966cda8898a5d.zip
Fix a bug that slip in: PAIR_XXXX macros expanded to run the increment
twice.
-rw-r--r--mdoc_html.c5
1 files changed, 3 insertions, 2 deletions
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 <kristaps@bsd.lv>
*
@@ -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);