diff options
author | Constantin Kaplinsky <const@tightvnc.com> | 2008-06-23 08:53:14 +0000 |
---|---|---|
committer | Constantin Kaplinsky <const@tightvnc.com> | 2008-06-23 08:53:14 +0000 |
commit | 5ef9c36c323267d05a2d8610fdc87b852a7213e8 (patch) | |
tree | e1b9b132db064a6a8cfeaedbd8ecbf9c5181cacc /java | |
parent | 9e501649e31821bc35be006015057451b33920fa (diff) | |
download | tigervnc-5ef9c36c323267d05a2d8610fdc87b852a7213e8.tar.gz tigervnc-5ef9c36c323267d05a2d8610fdc87b852a7213e8.zip |
[Development] Changed the .fbi file format, now key_fpos and key_size refer to pure data within FBS data block. Previously, they referred to the whole block with its service fields.
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@2615 3789f03b-4d11-0410-bbf8-ca57d06f2519
Diffstat (limited to 'java')
-rw-r--r-- | java/src/com/tightvnc/rfbplayer/FbsConnection.java | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/java/src/com/tightvnc/rfbplayer/FbsConnection.java b/java/src/com/tightvnc/rfbplayer/FbsConnection.java index d8bd972c..4276266a 100644 --- a/java/src/com/tightvnc/rfbplayer/FbsConnection.java +++ b/java/src/com/tightvnc/rfbplayer/FbsConnection.java @@ -229,10 +229,9 @@ public class FbsConnection { DataInputStream dis = new DataInputStream(is); // Load keyframe data from the .fbk file, prepend RFB initialization data. - int keyDataSize = dis.readInt(); - byte[] keyData = new byte[rfbInitData.length + keyDataSize]; + byte[] keyData = new byte[rfbInitData.length + (int)entryPoint.key_size]; System.arraycopy(rfbInitData, 0, keyData, 0, rfbInitData.length); - dis.readFully(keyData, rfbInitData.length, keyDataSize); + dis.readFully(keyData, rfbInitData.length, (int)entryPoint.key_size); dis.close(); // Open the FBS stream. |