diff options
author | Matthias Treydte <mt@waldheinz.de> | 2014-06-23 18:35:45 +0200 |
---|---|---|
committer | Matthias Treydte <mt@waldheinz.de> | 2014-06-23 18:44:53 +0200 |
commit | b6b88893062a71224429507019eaeb072e389020 (patch) | |
tree | de82cfd891c89f0ee43e65e9c0d9cdb6ad8ab17b | |
parent | 8c21b31cefc73d5da230deffe0b3a292f1b24b7a (diff) | |
download | libvncserver-b6b88893062a71224429507019eaeb072e389020.zip libvncserver-b6b88893062a71224429507019eaeb072e389020.tar.gz |
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); |