]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
fix compile failure in crypto.c
authordivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Wed, 20 Apr 2011 07:32:01 +0000 (07:32 +0000)
committerdivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Wed, 20 Apr 2011 07:32:01 +0000 (07:32 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@11072 d7cf8633-e32d-0410-b094-e92efae38249

crypto.c

index 7ff8ff48758c7a274c4d3752deacce9667d91a46..6a40df4c7233b4c259c9e1c14ed839cc3caa486e 100644 (file)
--- 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
                ||