From ef41e92001036029284c7bcfb6a9249cc2008a87 Mon Sep 17 00:00:00 2001 From: Brian Hinz Date: Fri, 16 Mar 2012 03:16:42 +0000 Subject: [PATCH] Workaround for potential failure to read the version string if the data isn't already in the buffer. May need further consideration, the problem can't be reproduced with the binary viewer. git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4870 3789f03b-4d11-0410-bbf8-ca57d06f2519 --- java/com/tigervnc/rfb/ConnParams.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java/com/tigervnc/rfb/ConnParams.java b/java/com/tigervnc/rfb/ConnParams.java index 7fac1260..e3c3a824 100644 --- a/java/com/tigervnc/rfb/ConnParams.java +++ b/java/com/tigervnc/rfb/ConnParams.java @@ -47,7 +47,7 @@ public class ConnParams { { if (verStrPos >= 12) return false; verStr = new StringBuilder(13); - while (verStrPos < 12 && is.checkNoWait(1)) { + while (verStrPos < 12) { verStr.insert(verStrPos++,(char)is.readU8()); } -- 2.39.5