aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/html.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2011-07-04 09:42:38 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2011-07-04 09:42:38 +0000
commit7162995ad97cdf982db73d488641974e1894e2d9 (patch)
tree1f7af60e03715206b529a6faeca9aa9db56a7b53 /html.c
parent66611c2a2aece81705e614fe7d87b9abe3495b7c (diff)
downloadmandoc-7162995ad97cdf982db73d488641974e1894e2d9.tar.gz
mandoc-7162995ad97cdf982db73d488641974e1894e2d9.tar.zst
mandoc-7162995ad97cdf982db73d488641974e1894e2d9.zip
The bufcat() function in -T[x]html was eating one byte off the end of its
concatenated string. This for some reason hasn't been found before now... ? Anyway, fixed, and make the IDs created again be correctly prefixed by a letter as per the HTML spec.
Diffstat (limited to 'html.c')
-rw-r--r--html.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/html.c b/html.c
index 45471fe3..ab096b4d 100644
--- a/html.c
+++ b/html.c
@@ -1,4 +1,4 @@
-/* $Id: html.c,v 1.147 2011/05/24 21:40:14 kristaps Exp $ */
+/* $Id: html.c,v 1.148 2011/07/04 09:42:38 kristaps Exp $ */
/*
* Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv>
* Copyright (c) 2011 Ingo Schwarze <schwarze@openbsd.org>
@@ -595,7 +595,6 @@ bufcat(struct html *h, const char *p)
h->buflen = strlcat(h->buf, p, BUFSIZ);
assert(h->buflen < BUFSIZ);
- h->buflen--;
}
void