changeset 97:145506601e0d

minor comment
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Wed, 03 Aug 2011 15:02:37 +0900
parents f0790bcf000d
children 3db7ac2b10f7
files src/myVncProxy/MyRfbProto.java
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/myVncProxy/MyRfbProto.java	Wed Aug 03 14:38:30 2011 +0900
+++ b/src/myVncProxy/MyRfbProto.java	Wed Aug 03 15:02:37 2011 +0900
@@ -540,7 +540,7 @@
 		while(inputIndex < inputs.size()) {
 			ByteBuffer b1 = inputs.get(inputIndex++);
 			deflater.setInput(b1.array(),b1.position(),b1.limit());
-			if (inputs.size()==0) {
+			if (inputIndex==inputs.size()) {
 				deflater.finish();
 			} 
 			do {
@@ -569,7 +569,7 @@
 	public int unzip(Inflater inflater, LinkedList<ByteBuffer> inputs, LinkedList<ByteBuffer> outputs)
 																	throws DataFormatException {
 		int len=0,len0;
-		// inflater.reset();
+	    inflater.reset();
 		int inputIndex = 0;
 		do {
 			ByteBuffer input = inputs.get(inputIndex++);