summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--html.c1
-rw-r--r--mdoc_html.c2
2 files changed, 2 insertions, 1 deletions
diff --git a/html.c b/html.c
index 170e5361..bd4a18bb 100644
--- a/html.c
+++ b/html.c
@@ -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
diff --git a/mdoc_html.c b/mdoc_html.c
index d7906a6c..bc9c52d0 100644
--- a/mdoc_html.c
+++ b/mdoc_html.c
@@ -610,6 +610,7 @@ mdoc_sh_pre(MDOC_ARGS)
return(1);
bufinit(h);
+ bufcat(h, "x");
for (n = n->child; n; n = n->next) {
bufcat_id(h, n->string);
if (n->next)
@@ -636,6 +637,7 @@ mdoc_ss_pre(MDOC_ARGS)
return(1);
bufinit(h);
+ bufcat(h, "x");
for (n = n->child; n; n = n->next) {
bufcat_id(h, n->string);
if (n->next)