]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
Fix some signed/unsigned mess. Not a real problem though.
authordivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Wed, 4 Mar 2015 11:49:07 +0000 (11:49 +0000)
committerRudolf Polzer <divVerent@xonotic.org>
Wed, 4 Mar 2015 15:04:35 +0000 (16:04 +0100)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12177 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=6b1ade501453a2def2320663016d556b832e7391

crypto.c

index 63988031386e5cbc12db7572773141cfb5ef4326..6abaaa220719ed20c96728530953c696bed78b67 100644 (file)
--- a/crypto.c
+++ b/crypto.c
@@ -2127,11 +2127,11 @@ int Crypto_ClientParsePacket(const char *data_in, size_t len_in, char *data_out,
                int wantserverid = -1;
 
                // these three are harmless
-               if(string[4] == CCREP_SERVER_INFO)
+               if((unsigned char) string[4] == CCREP_SERVER_INFO)
                        return CRYPTO_NOMATCH;
-               if(string[4] == CCREP_PLAYER_INFO)
+               if((unsigned char) string[4] == CCREP_PLAYER_INFO)
                        return CRYPTO_NOMATCH;
-               if(string[4] == CCREP_RULE_INFO)
+               if((unsigned char) string[4] == CCREP_RULE_INFO)
                        return CRYPTO_NOMATCH;
 
                Crypto_RetrieveHostKey(&cls.connect_address, &wantserverid, NULL, 0, NULL, 0, NULL, NULL);