summaryrefslogtreecommitdiff
path: root/HTMLparser.c
diff options
context:
space:
mode:
authorEugene Pimenov <libc@me.com>2010-03-10 18:10:49 +0100
committerDaniel Veillard <veillard@redhat.com>2010-03-10 18:10:49 +0100
commit1e60fbcb6ff7a054de9dc6bc05aaf01172ad3a6f (patch)
treedd2d659c9ae67cc6923602c471bd14c07562cdf1 /HTMLparser.c
parent9ccea57d61db766e7f117f62bd7f900590391cfa (diff)
downloadlibxml2-1e60fbcb6ff7a054de9dc6bc05aaf01172ad3a6f.tar.gz
htmlCheckEncoding doesn't update input-end after shrink
* HTMLparser.c: add the missing update to the end pointer
Diffstat (limited to 'HTMLparser.c')
-rw-r--r--HTMLparser.c2
1 files changed, 2 insertions, 0 deletions
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];
}
}
}