On Sun, Oct 30, 2005 at 03:43:16PM +0100, Mike Hommey wrote:

> I guess it doesn't solve the problem if you enter some lines followed by
> an EOF with the testcase.

Rats, yes.  You also need this:

--- gzio.c.orig 2005-10-30 15:19:18.000000000 +0000
+++ gzio.c      2005-10-30 15:18:45.000000000 +0000
@@ -436,7 +437,7 @@
                 s->stream.avail_out -= n;
                 s->stream.avail_in  -= n;
             }
-            if (s->stream.avail_out > 0) {
+            if (s->stream.avail_out > 0 && !feof(s->file)) {
                 s->stream.avail_out -=
                     (uInt)fread(next_out, 1, s->stream.avail_out, s->file);
             }

-- 
"You grabbed my hand and we fell into it, like a daydream - or a fever."

Attachment: signature.asc
Description: Digital signature

Reply via email to