summaryrefslogtreecommitdiff
path: root/parserInternals.c
diff options
context:
space:
mode:
authorDaniel Veillard <veillard@src.gnome.org>2003-10-05 13:51:35 +0000
committerDaniel Veillard <veillard@src.gnome.org>2003-10-05 13:51:35 +0000
commitf403d298c3dfa831777a4b2d961a66a84666ddc3 (patch)
treeea03d32e88ef4ff49c9dbc6fb43cacf3985b8338 /parserInternals.c
parent24eb97851d77666bc7809a4892679de1a5800970 (diff)
downloadlibxml2-f403d298c3dfa831777a4b2d961a66a84666ddc3.tar.gz
more code cleanup, especially around error messages, the HTML parser has
* HTMLparser.c Makefile.am legacy.c parser.c parserInternals.c include/libxml/xmlerror.h: more code cleanup, especially around error messages, the HTML parser has now been upgraded to the new handling. * result/HTML/*: a few changes in the resulting error messages Daniel
Diffstat (limited to 'parserInternals.c')
-rw-r--r--parserInternals.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/parserInternals.c b/parserInternals.c
index 8966d8ad..c07dd205 100644
--- a/parserInternals.c
+++ b/parserInternals.c
@@ -934,7 +934,7 @@ xmlNextChar(xmlParserCtxtPtr ctxt)
(xmlParserInputGrow(ctxt->input, INPUT_CHUNK) <= 0))
xmlPopInput(ctxt);
return;
- encoding_error:
+encoding_error:
/*
* If we detect an UTF8 error that probably mean that the
* input encoding didn't get properly advertised in the
@@ -1045,7 +1045,7 @@ xmlCurrentChar(xmlParserCtxtPtr ctxt, int *len) {
(ctxt->sax->error != NULL))
ctxt->sax->error(ctxt->userData,
"Char 0x%X out of allowed range\n", val);
- ctxt->errNo = XML_ERR_INVALID_ENCODING;
+ ctxt->errNo = XML_ERR_INVALID_CHAR;
ctxt->wellFormed = 0;
if (ctxt->recovery == 0) ctxt->disableSAX = 1;
}