aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--java/com/tigervnc/rfb/CConnection.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/java/com/tigervnc/rfb/CConnection.java b/java/com/tigervnc/rfb/CConnection.java
index e62f8517..e0e669d8 100644
--- a/java/com/tigervnc/rfb/CConnection.java
+++ b/java/com/tigervnc/rfb/CConnection.java
@@ -197,7 +197,7 @@ abstract public class CConnection extends CMsgHandler {
verStr.clear();
verStr.put(String.format("RFB %03d.%03d\n",
- majorVersion, minorVersion).getBytes()).flip();
+ server.majorVersion, server.minorVersion).getBytes()).flip();
os.writeBytes(verStr.array(), 0, 12);
os.flush();