From fdaf72417a6172aa22cf067bc6cd625eeab2db0e Mon Sep 17 00:00:00 2001 From: James Bursa Date: Tue, 22 Jun 2004 17:37:51 +0000 Subject: [project @ 2004-06-22 17:37:51 by bursa] Fix aborting of fetches. svn path=/import/netsurf/; revision=990 --- content/content.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'content/content.c') diff --git a/content/content.c b/content/content.c index 8d92f187b..3d3e88702 100644 --- a/content/content.c +++ b/content/content.c @@ -376,7 +376,8 @@ void content_set_status(struct content *c, const char *status_message, ...) * possibly reported */ -bool content_process_data(struct content *c, char *data, unsigned int size) +bool content_process_data(struct content *c, const char *data, + unsigned int size) { char *source_data; union content_msg_data msg_data; @@ -400,7 +401,8 @@ bool content_process_data(struct content *c, char *data, unsigned int size) c->size += size; if (handler_map[c->type].process_data) { - if (!handler_map[c->type].process_data(c, data, size)) { + if (!handler_map[c->type].process_data(c, + source_data + c->source_size - size, size)) { c->status = CONTENT_STATUS_ERROR; return false; } -- cgit v1.2.3