summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Aylett <james@tartarus.org>2001-07-16 07:57:15 +0000
committerJames Aylett <james@tartarus.org>2001-07-16 07:57:15 +0000
commit986da4bb991e4b4c45fcfd88113095ee21156ef1 (patch)
tree1b2ecb09b7be0b3c71672485fadcf49bda54c2ae
parent78ca3e3d671b785d7ad7d159dd07480ccdaba859 (diff)
downloadhalibut-986da4bb991e4b4c45fcfd88113095ee21156ef1.zip
halibut-986da4bb991e4b4c45fcfd88113095ee21156ef1.tar.gz
halibut-986da4bb991e4b4c45fcfd88113095ee21156ef1.tar.bz2
halibut-986da4bb991e4b4c45fcfd88113095ee21156ef1.tar.xz
Numeric entities written about properly (Christian Ludlam).
[originally from svn r1159]
-rw-r--r--bk_xhtml.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/bk_xhtml.c b/bk_xhtml.c
index f905ec6..548495f 100644
--- a/bk_xhtml.c
+++ b/bk_xhtml.c
@@ -1131,8 +1131,8 @@ static int xhtml_convert(wchar_t *s, char **result, int hard_spaces) {
plen+=6;
} else {
/* FIXME: entity names! */
- ensure_size(plen+7); /* includes space for the NUL, which is subsequently stomped on */
- plen+=sprintf(p+plen, "&#%i;", (int)c);
+ ensure_size(plen+8); /* includes space for the NUL, which is subsequently stomped on */
+ plen+=sprintf(p+plen, "&#%04i;", (int)c);
}
}
}