diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2011-04-04 16:44:56 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2011-04-04 16:44:56 +0000 |
commit | 77be3823bab219163ead178ad2719d16ea5ebe77 (patch) | |
tree | 3ca9b8788eff1081efcd2d21cab14cfb36f42e60 | |
parent | 6f352eb77aabefaf6c1af62970d9f56cea660afd (diff) | |
download | mandoc-77be3823bab219163ead178ad2719d16ea5ebe77.tar.gz |
Fix a bug that slip in: PAIR_XXXX macros expanded to run the increment
twice.
-rw-r--r-- | mdoc_html.c | 3 |
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); |