diff options
Diffstat (limited to 'krdc')
-rw-r--r-- | krdc/vnc/rfbproto.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/krdc/vnc/rfbproto.c b/krdc/vnc/rfbproto.c index a178ed6f..d616d298 100644 --- a/krdc/vnc/rfbproto.c +++ b/krdc/vnc/rfbproto.c @@ -501,6 +501,7 @@ SendKeyEvent(CARD32 key, Bool down) { rfbKeyEventMsg ke; + memset(&ke, 0, sizeof(ke)); ke.type = rfbKeyEvent; ke.down = down ? 1 : 0; ke.key = Swap32IfLE(key); @@ -518,6 +519,7 @@ SendClientCutText(const char *str, int len) { rfbClientCutTextMsg cct; + memset(&cct, 0, sizeof(cct)); cct.type = rfbClientCutText; cct.length = Swap32IfLE((unsigned int)len); return (WriteExact(rfbsock, (char *)&cct, sz_rfbClientCutTextMsg) && |