From 05318b210daaa6d68b74f154fef1dae81503eaa8 Mon Sep 17 00:00:00 2001 From: James Bursa Date: Wed, 26 Feb 2003 18:22:24 +0000 Subject: [project @ 2003-02-26 18:22:24 by bursa] Fix HTML parsing and JPEG bug. svn path=/import/netsurf/; revision=101 --- render/html.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'render/html.c') diff --git a/render/html.c b/render/html.c index e8d2f69b2..3548895e7 100644 --- a/render/html.c +++ b/render/html.c @@ -1,5 +1,5 @@ /** - * $Id: html.c,v 1.2 2003/02/25 21:00:27 bursa Exp $ + * $Id: html.c,v 1.3 2003/02/26 18:22:24 bursa Exp $ */ #include @@ -32,10 +32,11 @@ void html_create(struct content *c) void html_process_data(struct content *c, char *data, unsigned long size) { unsigned long x; - for (x = 0; x < size; x += CHUNK) { + for (x = 0; x + CHUNK <= size; x += CHUNK) { htmlParseChunk(c->data.html.parser, data + x, CHUNK, 0); gui_multitask(); } + htmlParseChunk(c->data.html.parser, data + x, size - x, 0); } -- cgit v1.2.3