From 41640cd096bd09557dcc4fd5cf09de19c15e59eb Mon Sep 17 00:00:00 2001 From: "Thomas E. Dickey" Date: Wed, 22 Aug 2012 11:11:26 -0400 Subject: snapshot of project "lynx", label v2-8-8dev_14 --- WWW/Library/Implementation/HTMIME.c | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'WWW') diff --git a/WWW/Library/Implementation/HTMIME.c b/WWW/Library/Implementation/HTMIME.c index 66b69ab5..a8e41974 100644 --- a/WWW/Library/Implementation/HTMIME.c +++ b/WWW/Library/Implementation/HTMIME.c @@ -1,5 +1,5 @@ /* - * $LynxId: HTMIME.c,v 1.78 2012/08/15 10:59:12 tom Exp $ + * $LynxId: HTMIME.c,v 1.79 2012/08/22 09:48:46 tom Exp $ * * MIME Message Parse HTMIME.c * ================== @@ -577,7 +577,12 @@ static int pumpData(HTStream *me) FREE(url); } } - CTRACE((tfp, "...end of pumpData\n")); + CTRACE((tfp, "...end of pumpData, copied %" + PRI_off_t " vs %" + PRI_off_t "\n", + me->anchor->actual_length, + me->anchor->content_length)); + me->anchor->actual_length = 0; return HT_OK; } @@ -1079,6 +1084,8 @@ static void HTMIME_put_character(HTStream *me, int c) if (me->anchor->content_length == 0 || (me->anchor->content_length >= me->anchor->actual_length)) { (me->targetClass.put_character) (me->target, c); + } else { + (me->targetClass.put_character) (me->target, c); } return; -- cgit 1.4.1-2-gfad0