LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File stack-overflow of Package x11vnc (Project openSUSE:11.4)

Index: x11vnc-0.9.2/libvncserver/tightvnc-filetransfer/filetransfermsg.c
===================================================================
--- x11vnc-0.9.2.orig/libvncserver/tightvnc-filetransfer/filetransfermsg.c
+++ x11vnc-0.9.2/libvncserver/tightvnc-filetransfer/filetransfermsg.c
@@ -392,9 +392,9 @@ CreateFileDownloadErrMsg(char* reason, u
 FileTransferMsg
 CreateFileDownloadZeroSizeDataMsg(unsigned long mTime)
 {
 	FileTransferMsg fileDownloadZeroSizeDataMsg;
-	int length = sz_rfbFileDownloadDataMsg + sizeof(int);
+	int length = sz_rfbFileDownloadDataMsg + sizeof(unsigned long);
 	rfbFileDownloadDataMsg *pFDD = NULL;
 	char *pFollow = NULL;
 	
 	char *pData = (char*) calloc(length, sizeof(char));