[libxml2] htmlCheckEncoding doesn't update input-end after shrink
- From: Daniel Veillard <veillard src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libxml2] htmlCheckEncoding doesn't update input-end after shrink
- Date: Wed, 10 Mar 2010 17:11:36 +0000 (UTC)
commit 1e60fbcb6ff7a054de9dc6bc05aaf01172ad3a6f
Author: Eugene Pimenov <libc me com>
Date: Wed Mar 10 18:10:49 2010 +0100
htmlCheckEncoding doesn't update input-end after shrink
* HTMLparser.c: add the missing update to the end pointer
HTMLparser.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/HTMLparser.c b/HTMLparser.c
index 3d4831c..da3b173 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];
}
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]