]> source.dussan.org Git - tigervnc.git/commitdiff
[Development] Changed the .fbi file format, now key_fpos and key_size refer to pure...
authorConstantin Kaplinsky <const@tightvnc.com>
Mon, 23 Jun 2008 08:53:14 +0000 (08:53 +0000)
committerConstantin Kaplinsky <const@tightvnc.com>
Mon, 23 Jun 2008 08:53:14 +0000 (08:53 +0000)
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@2615 3789f03b-4d11-0410-bbf8-ca57d06f2519

java/src/com/tightvnc/rfbplayer/FbsConnection.java

index d8bd972cb8becfa8a48dd7453058ce9cab1c71a9..4276266a6a224b2faec3aa91e66b35b071af6cc0 100644 (file)
@@ -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.