fix crash in debug version: len of data to be summed needs to be 32 bits!

This commit is contained in:
Eric House 2013-06-30 06:50:57 -07:00
parent 1a73ab26ac
commit 7efbfab0e5
2 changed files with 2 additions and 2 deletions

View file

@ -652,7 +652,7 @@ writeNoConnMsgs( CommonGlobals* cGlobals, int fd )
} /* writeNoConnMsgs */
void
figureMD5Sum( const XP_U8* data, XP_U16 datalen, XP_UCHAR* buf, XP_U16* buflen )
figureMD5Sum( const XP_U8* data, gssize datalen, XP_UCHAR* buf, XP_U16* buflen )
{
GChecksum* cksum = g_checksum_new( G_CHECKSUM_MD5 );
g_checksum_update( cksum, data, datalen );

View file

@ -49,7 +49,7 @@ XP_Bool storeNoConnMsg( CommonGlobals* cGlobals, const XP_U8* msg, XP_U16 len,
const XP_UCHAR* relayID );
void writeNoConnMsgs( CommonGlobals* cGlobals, int fd );
void figureMD5Sum( const XP_U8* data, XP_U16 datalen,
void figureMD5Sum( const XP_U8* data, gssize datalen,
XP_UCHAR* buf, XP_U16* buflen );