about summary refs log tree commit diff stats
path: root/WWW/Library/Implementation
diff options
context:
space:
mode:
authorThomas E. Dickey <dickey@invisible-island.net>2013-10-01 23:46:43 -0400
committerThomas E. Dickey <dickey@invisible-island.net>2013-10-01 23:46:43 -0400
commit3b6378f767f39efc0e8da6f7f8bb36f76e684b5f (patch)
tree8004515f31619710cb48e9449b66a14d993a5002 /WWW/Library/Implementation
parent37a1afaefc1436b2a06744d05c7ddb0cd3b42b1c (diff)
downloadlynx-snapshots-3b6378f767f39efc0e8da6f7f8bb36f76e684b5f.tar.gz
snapshot of project "lynx", label v2-8-8dev_16d
Diffstat (limited to 'WWW/Library/Implementation')
-rw-r--r--WWW/Library/Implementation/HTFormat.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/WWW/Library/Implementation/HTFormat.c b/WWW/Library/Implementation/HTFormat.c
index bb75ba4b..94a7bfd7 100644
--- a/WWW/Library/Implementation/HTFormat.c
+++ b/WWW/Library/Implementation/HTFormat.c
@@ -1,5 +1,5 @@
 /*
- * $LynxId: HTFormat.c,v 1.80 2013/05/05 20:19:02 tom Exp $
+ * $LynxId: HTFormat.c,v 1.81 2013/10/01 23:43:39 tom Exp $
  *
  *		Manage different file formats			HTFormat.c
  *		=============================
@@ -870,7 +870,7 @@ int HTCopy(HTParentAnchor *anchor,
 #endif /* NOT_ASCII */
 
 	total = bytes + status;
-	if (limit == 0 || (total < limit)) {
+	if (limit == 0 || bytes == 0 || (total < limit)) {
 	    (*targetClass.put_block) (sink, input_buffer, status);
 	} else if (bytes < limit) {
 	    (*targetClass.put_block) (sink, input_buffer, (int) (limit - bytes));