]> git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
fix a syntax error. Why didn't my gcc catch it? clang does...
authordivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Wed, 6 Oct 2010 11:19:27 +0000 (11:19 +0000)
committerRudolf Polzer <divverent@alientrap.org>
Wed, 6 Oct 2010 11:25:03 +0000 (13:25 +0200)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10515 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=f57d9c23e169d7b996ee332adac7f2608024e177

lhnet.c

diff --git a/lhnet.c b/lhnet.c
index 918ae06a7c17076ee34bb3433a62573ccc54c688..42ca242cf0c1a91b08d04f9befd67266b66b8f99 100644 (file)
--- a/lhnet.c
+++ b/lhnet.c
@@ -386,7 +386,7 @@ int LHNETADDRESS_FromString(lhnetaddress_t *vaddress, const char *string, int de
        address->addresstype = LHNETADDRESSTYPE_NONE;
        port = 0;
        colon = strrchr(string, ':');
-       if (colon && (colon == strchr(string, ':') || (string[0] == '[' && colon - string > 0 && colon[-1] == ']'))I)
+       if (colon && (colon == strchr(string, ':') || (string[0] == '[' && colon - string > 0 && colon[-1] == ']')))
        //           EITHER: colon is the ONLY colon  OR: colon comes after [...] delimited IPv6 address
        //           fixes misparsing of IPv6 addresses without port
        {