Commit db45aaa6 by Bryce McKinlay

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

From-SVN: r37847
parent d02bc1fb
...@@ -89,7 +89,7 @@ public class InflaterInputStream extends FilterInputStream ...@@ -89,7 +89,7 @@ public class InflaterInputStream extends FilterInputStream
count = inf.inflate(buf, off, len); count = inf.inflate(buf, off, len);
if (count == 0) if (count == 0)
{ {
if (len == -1) if (this.len == -1)
return -1; // Couldn't get any more data to feed to the Inflater return -1; // Couldn't get any more data to feed to the Inflater
if (inf.needsDictionary()) if (inf.needsDictionary())
throw new ZipException ("Inflater needs Dictionary"); throw new ZipException ("Inflater needs Dictionary");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment