From: divverent Date: Wed, 20 Apr 2011 07:32:01 +0000 (+0000) Subject: fix compile failure in crypto.c X-Git-Tag: xonotic-v0.6.0~163^2~474 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=e6ca1459736cbd145657e386651a83056ca2474e;p=xonotic%2Fdarkplaces.git fix compile failure in crypto.c git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@11072 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/crypto.c b/crypto.c index 7ff8ff48..6a40df4c 100644 --- a/crypto.c +++ b/crypto.c @@ -1353,7 +1353,7 @@ const void *Crypto_EncryptPacket(crypto_t *crypto, const void *data_src, size_t memcpy(((unsigned char *) data_dst) + 16, (unsigned char *) data_src, len_src); // handle the "avoid" conditions: - i = BuffBigLong(data_dst); + i = BuffBigLong((unsigned char *) data_dst); if( (i == (int)0xFFFFFFFF) // avoid QW control packet || @@ -1376,7 +1376,7 @@ const void *Crypto_DecryptPacket(crypto_t *crypto, const void *data_src, size_t int i; // silently handle non-crypto packets - i = BuffBigLong(data_src); + i = BuffBigLong((unsigned char *) data_src); if( (i == (int)0xFFFFFFFF) // avoid QW control packet ||