From 3b6378f767f39efc0e8da6f7f8bb36f76e684b5f Mon Sep 17 00:00:00 2001 From: "Thomas E. Dickey" Date: Tue, 1 Oct 2013 23:46:43 -0400 Subject: snapshot of project "lynx", label v2-8-8dev_16d --- WWW/Library/Implementation/HTFormat.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'WWW/Library/Implementation') 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)); -- cgit 1.4.1-2-gfad0