diff --git a/libvncclient/rfbproto.c b/libvncclient/rfbproto.c index 6af21a5..2f887c3 100644 --- a/libvncclient/rfbproto.c +++ b/libvncclient/rfbproto.c @@ -2227,7 +2227,7 @@ HandleRFBServerMessage(rfbClient* client) return FALSE; } - buffer = malloc((uint64_t)msg.sct.length+1); + buffer = malloc(msg.sct.length+1); if (!ReadFromRFBServer(client, buffer, msg.sct.length)) { free(buffer);