From 986da4bb991e4b4c45fcfd88113095ee21156ef1 Mon Sep 17 00:00:00 2001 From: James Aylett Date: Mon, 16 Jul 2001 07:57:15 +0000 Subject: Numeric entities written about properly (Christian Ludlam). [originally from svn r1159] --- bk_xhtml.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'bk_xhtml.c') 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); } } } -- cgit v1.1