diff options
Diffstat (limited to 'libvncserver')
-rw-r--r-- | libvncserver/rfbserver.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libvncserver/rfbserver.c b/libvncserver/rfbserver.c index ed1365a..6ca511f 100644 --- a/libvncserver/rfbserver.c +++ b/libvncserver/rfbserver.c @@ -1465,7 +1465,7 @@ char *rfbProcessFileTransferReadBuffer(rfbClientPtr cl, uint32_t length) rfbLog("rfbProcessFileTransferReadBuffer(%dlen)\n", length); */ if (length>0) { - buffer=malloc(length+1); + buffer=malloc((uint64_t)length+1); if (buffer!=NULL) { if ((n = rfbReadExact(cl, (char *)buffer, length)) <= 0) { if (n != 0) |