Fix buffer overflow

Signed-off-by: Cristian Rodríguez <crrodriguez@opensuse.org>
Signed-off-by: Christian Beier <dontmind@freeshell.org>
pull/1/head
Cristian Rodríguez 13 years ago committed by Christian Beier
parent 984706076c
commit c8b8938106

@ -393,7 +393,7 @@ FileTransferMsg
CreateFileDownloadZeroSizeDataMsg(unsigned long mTime) CreateFileDownloadZeroSizeDataMsg(unsigned long mTime)
{ {
FileTransferMsg fileDownloadZeroSizeDataMsg; FileTransferMsg fileDownloadZeroSizeDataMsg;
int length = sz_rfbFileDownloadDataMsg + sizeof(int); int length = sz_rfbFileDownloadDataMsg + sizeof(unsigned long);
rfbFileDownloadDataMsg *pFDD = NULL; rfbFileDownloadDataMsg *pFDD = NULL;
char *pFollow = NULL; char *pFollow = NULL;

Loading…
Cancel
Save