VNC: Fix a memory clobblering bug

This commit is contained in:
Gregory Nutt
2016-04-23 10:21:49 -06:00
parent e723fc7fd4
commit f3499b173a
2 changed files with 11 additions and 19 deletions
+2 -2
View File
@@ -370,8 +370,8 @@ struct rfb_setpixelformat_s
struct rfb_setencodings_s
{
uint8_t msgtype; /* U8 Message type */
uint8_t padding[3];
uint8_t nencodings[4]; /* U32 Number of encodings */
uint8_t padding;
uint8_t nencodings[2]; /* U32 Number of encodings */
uint8_t encodings[4]; /* S32 Encoding type, size = 4*nencodings */
};