From f57d9c23e169d7b996ee332adac7f2608024e177 Mon Sep 17 00:00:00 2001 From: divverent Date: Wed, 6 Oct 2010 11:19:27 +0000 Subject: [PATCH] fix a syntax error. Why didn't my gcc catch it? clang does... git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10515 d7cf8633-e32d-0410-b094-e92efae38249 --- lhnet.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lhnet.c b/lhnet.c index bb1e0085..0b68712c 100644 --- a/lhnet.c +++ b/lhnet.c @@ -389,7 +389,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 { -- 2.39.2