diff options
author | Brian Hinz <bphinz@users.sourceforge.net> | 2011-06-17 20:46:08 +0000 |
---|---|---|
committer | Brian Hinz <bphinz@users.sourceforge.net> | 2011-06-17 20:46:08 +0000 |
commit | ee4074bef241007635b1c732bd9a628d6be1b3dd (patch) | |
tree | 63b80921ff6be4c446de160b0cf3476164bcd1b4 | |
parent | 2c5b44ca2ccbcf2286a57ef4247987cf03842f07 (diff) | |
download | tigervnc-ee4074bef241007635b1c732bd9a628d6be1b3dd.tar.gz tigervnc-ee4074bef241007635b1c732bd9a628d6be1b3dd.zip |
corrected missing index ptr in new ZlibInStream implementation
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4507 3789f03b-4d11-0410-bbf8-ca57d06f2519
-rw-r--r-- | java/src/com/tigervnc/rdr/ZlibInStream.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/java/src/com/tigervnc/rdr/ZlibInStream.java b/java/src/com/tigervnc/rdr/ZlibInStream.java index 439ddfe2..62c45bd8 100644 --- a/java/src/com/tigervnc/rdr/ZlibInStream.java +++ b/java/src/com/tigervnc/rdr/ZlibInStream.java @@ -33,6 +33,7 @@ public class ZlibInStream extends InStream { b = new byte[bufSize]; bytesIn = offset = 0; zs = new ZStream(); + zs.next_in = null; zs.next_in_index = 0; zs.avail_in = 0; if (zs.inflateInit() != JZlib.Z_OK) { @@ -112,6 +113,7 @@ public class ZlibInStream extends InStream { int n = underlying.check(1, 1, wait); if (n == 0) return false; zs.next_in = underlying.getbuf(); + zs.next_in_index = underlying.getptr(); zs.avail_in = underlying.getend() - underlying.getptr(); if (zs.avail_in > bytesIn) zs.avail_in = bytesIn; |