about summary refs log tree commit diff stats
path: root/WWW
diff options
context:
space:
mode:
authorThomas E. Dickey <dickey@invisible-island.net>2012-08-22 11:11:26 -0400
committerThomas E. Dickey <dickey@invisible-island.net>2012-08-22 11:11:26 -0400
commit41640cd096bd09557dcc4fd5cf09de19c15e59eb (patch)
tree0539e3017a77075c445efe310f90c4655abc37bc /WWW
parentfe33fce24581e08142660ab2c17a2f9040d88e18 (diff)
downloadlynx-snapshots-41640cd096bd09557dcc4fd5cf09de19c15e59eb.tar.gz
snapshot of project "lynx", label v2-8-8dev_14
Diffstat (limited to 'WWW')
-rw-r--r--WWW/Library/Implementation/HTMIME.c11
1 files changed, 9 insertions, 2 deletions
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;