From e6ca1459736cbd145657e386651a83056ca2474e Mon Sep 17 00:00:00 2001 From: divverent Date: Wed, 20 Apr 2011 07:32:01 +0000 Subject: [PATCH] fix compile failure in crypto.c git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@11072 d7cf8633-e32d-0410-b094-e92efae38249 --- crypto.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 || -- 2.39.2