diff options
author | Vic Lee <llyzs@163.com> | 2009-09-14 12:14:13 +0800 |
---|---|---|
committer | Johannes Schindelin <johannes.schindelin@gmx.de> | 2009-09-27 14:20:48 +0200 |
commit | 4e1aba74e6b485c39c4522f1f65c114b88b61636 (patch) | |
tree | 03dc53fc5f9ee24f8ae888a300c4169ac26e6a5c /libvncclient/rfbproto.c | |
parent | fd084b5d28189727f1dff6022d2b421d772bcc1a (diff) | |
download | libvncserver-4e1aba74e6b485c39c4522f1f65c114b88b61636.zip libvncserver-4e1aba74e6b485c39c4522f1f65c114b88b61636.tar.gz |
Fix bug for VNC Server version 4
Signed-off-by: Vic Lee <llyzs@163.com>
Diffstat (limited to 'libvncclient/rfbproto.c')
-rw-r--r-- | libvncclient/rfbproto.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/libvncclient/rfbproto.c b/libvncclient/rfbproto.c index 5a83e47..c73593f 100644 --- a/libvncclient/rfbproto.c +++ b/libvncclient/rfbproto.c @@ -511,8 +511,11 @@ InitialiseRFBConnection(rfbClient* client) } /* we do not support > RFB3.8 */ - if (major==3 && minor>8) + if ((major==3 && minor>8) || major>3) + { + client->major=3; client->minor=8; + } rfbClientLog("VNC server supports protocol version %d.%d (viewer %d.%d)\n", major, minor, rfbProtocolMajorVersion, rfbProtocolMinorVersion); |