summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordscho <johannes.schindelin@gmx.de>2014-06-23 13:12:59 -0500
committerdscho <johannes.schindelin@gmx.de>2014-06-23 13:12:59 -0500
commitd1a3eb9db5b5c4e0b9b2c4529bb5f82fbd8fd331 (patch)
tree0c15288b3e16aa51b64fe00d4116fd254e2288b6
parentda7cf4fe2a7d290e0371e5e305d07fd2dfcf77e1 (diff)
parentb6b88893062a71224429507019eaeb072e389020 (diff)
downloadlibvncserver-d1a3eb9db5b5c4e0b9b2c4529bb5f82fbd8fd331.zip
libvncserver-d1a3eb9db5b5c4e0b9b2c4529bb5f82fbd8fd331.tar.gz
Merge pull request #7 from waldheinz/init-sfae-padding
Initialize padding in SetFormatAndEncodings' rfbSetPixelFormatMsg.
-rw-r--r--libvncclient/rfbproto.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libvncclient/rfbproto.c b/libvncclient/rfbproto.c
index f5185ca..b4d7156 100644
--- a/libvncclient/rfbproto.c
+++ b/libvncclient/rfbproto.c
@@ -1288,6 +1288,8 @@ SetFormatAndEncodings(rfbClient* client)
if (!SupportsClient2Server(client, rfbSetPixelFormat)) return TRUE;
spf.type = rfbSetPixelFormat;
+ spf.pad1 = 0;
+ spf.pad2 = 0;
spf.format = client->format;
spf.format.redMax = rfbClientSwap16IfLE(spf.format.redMax);
spf.format.greenMax = rfbClientSwap16IfLE(spf.format.greenMax);
OpenPOWER on IntegriCloud