summaryrefslogtreecommitdiff
path: root/testHTML.c
diff options
context:
space:
mode:
authorDaniel Veillard <veillard@src.gnome.org>2000-08-29 09:41:15 +0000
committerDaniel Veillard <veillard@src.gnome.org>2000-08-29 09:41:15 +0000
commit4948eb4fd4f0b98e978d19ead9a1368a9cc0a637 (patch)
treeb6053a8854a29a8f9d994fd16ef3c37ef0509543 /testHTML.c
parente010c17d78f06af35b9977cf03f10df1e1c05aeb (diff)
downloadlibxml2-4948eb4fd4f0b98e978d19ead9a1368a9cc0a637.tar.gz
- HTMLparser.c testHTML.c: applied two new patches from
Wayne Davison <wayned@blorf.net> - result/HTML/*.sax: regenerated HTML SAX output - parser.c: more cleanup. Daniel
Diffstat (limited to 'testHTML.c')
-rw-r--r--testHTML.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/testHTML.c b/testHTML.c
index af088b5c..0bd7fee8 100644
--- a/testHTML.c
+++ b/testHTML.c
@@ -412,9 +412,9 @@ void
charactersDebug(void *ctx, const xmlChar *ch, int len)
{
unsigned char output[40];
- int outlen = 30;
+ int inlen = len, outlen = 30;
- htmlEncodeEntities(output, &outlen, ch, &len, 0);
+ htmlEncodeEntities(output, &outlen, ch, &inlen, 0);
output[outlen] = 0;
fprintf(stdout, "SAX.characters(%s, %d)\n", output, len);