diff options
author | dscho <johannes.schindelin@gmx.de> | 2014-06-23 13:12:59 -0500 |
---|---|---|
committer | dscho <johannes.schindelin@gmx.de> | 2014-06-23 13:12:59 -0500 |
commit | d1a3eb9db5b5c4e0b9b2c4529bb5f82fbd8fd331 (patch) | |
tree | 0c15288b3e16aa51b64fe00d4116fd254e2288b6 | |
parent | da7cf4fe2a7d290e0371e5e305d07fd2dfcf77e1 (diff) | |
parent | b6b88893062a71224429507019eaeb072e389020 (diff) | |
download | libvncserver-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.c | 2 |
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); |