diff options
| author | James Aylett <james@tartarus.org> | 2001-07-16 07:57:15 +0000 |
|---|---|---|
| committer | James Aylett <james@tartarus.org> | 2001-07-16 07:57:15 +0000 |
| commit | 986da4bb991e4b4c45fcfd88113095ee21156ef1 (patch) | |
| tree | 1b2ecb09b7be0b3c71672485fadcf49bda54c2ae | |
| parent | 78ca3e3d671b785d7ad7d159dd07480ccdaba859 (diff) | |
| download | halibut-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.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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); } } } |