X-Git-Url: https://git.xonotic.org/?a=blobdiff_plain;f=crypto.c;h=6a40df4c7233b4c259c9e1c14ed839cc3caa486e;hb=7c586d061e7308e0e8164827fa0e14b470921d67;hp=7ff8ff48758c7a274c4d3752deacce9667d91a46;hpb=294762940c3d8fb26989ce5fa0f8d2588d5e5a2e;p=xonotic%2Fdarkplaces.git 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 ||