From ee4074bef241007635b1c732bd9a628d6be1b3dd Mon Sep 17 00:00:00 2001 From: Brian Hinz Date: Fri, 17 Jun 2011 20:46:08 +0000 Subject: [PATCH] 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 --- java/src/com/tigervnc/rdr/ZlibInStream.java | 2 ++ 1 file changed, 2 insertions(+) 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; -- 2.39.5