From b6b88893062a71224429507019eaeb072e389020 Mon Sep 17 00:00:00 2001 From: Matthias Treydte Date: Mon, 23 Jun 2014 18:35:45 +0200 Subject: [PATCH] Initialize padding in SetFormatAndEncodings' rfbSetPixelFormatMsg. --- libvncclient/rfbproto.c | 2 ++ 1 file changed, 2 insertions(+) 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);