Check this.len, not len, when determining if there is no more input data.

From-SVN: r37847
This commit is contained in:
Bryce McKinlay 2000-11-29 10:37:40 +00:00
parent d02bc1fb25
commit db45aaa691

View file

@ -89,7 +89,7 @@ public class InflaterInputStream extends FilterInputStream
count = inf.inflate(buf, off, len);
if (count == 0)
{
if (len == -1)
if (this.len == -1)
return -1; // Couldn't get any more data to feed to the Inflater
if (inf.needsDictionary())
throw new ZipException ("Inflater needs Dictionary");