From 1e60fbcb6ff7a054de9dc6bc05aaf01172ad3a6f Mon Sep 17 00:00:00 2001 From: Eugene Pimenov Date: Wed, 10 Mar 2010 18:10:49 +0100 Subject: htmlCheckEncoding doesn't update input-end after shrink * HTMLparser.c: add the missing update to the end pointer --- HTMLparser.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'HTMLparser.c') diff --git a/HTMLparser.c b/HTMLparser.c index 3d4831ce..da3b173d 100644 --- a/HTMLparser.c +++ b/HTMLparser.c @@ -3478,6 +3478,8 @@ htmlCheckEncoding(htmlParserCtxtPtr ctxt, const xmlChar *attvalue) { } ctxt->input->base = ctxt->input->cur = ctxt->input->buf->buffer->content; + ctxt->input->end = + &ctxt->input->base[ctxt->input->buf->buffer->use]; } } } -- cgit v1.2.1