mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2024-12-28 09:58:30 +01:00
fix crash in debug version: len of data to be summed needs to be 32 bits!
This commit is contained in:
parent
1a73ab26ac
commit
7efbfab0e5
2 changed files with 2 additions and 2 deletions
|
@ -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 );
|
||||
|
|
|
@ -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 );
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue