diff --git a/src/Lzw/LzwInputStream.cs b/src/Lzw/LzwInputStream.cs index 94b8b66e2..1ff80eb05 100644 --- a/src/Lzw/LzwInputStream.cs +++ b/src/Lzw/LzwInputStream.cs @@ -129,7 +129,8 @@ public override int ReadByte() { public override int Read(byte[] buffer, int offset, int count) { if (!headerParsed) ParseHeader(); - if (eof) return -1; + if (eof) return 0; + int start = offset; /* Using local copies of various variables speeds things up by as