From cd49cf0aac55f7dcffd4f0a9448c5296961a915e Mon Sep 17 00:00:00 2001 From: /dev/humancontroller Date: Thu, 13 Apr 2017 11:30:00 +0000 Subject: fix the game module truncating the last digit of each maximally long IP(v4) address eg., both 111.111.111.112 and 111.111.111.113 were considered to be just 111.111.111.11 --- src/game/g_client.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/game') diff --git a/src/game/g_client.c b/src/game/g_client.c index 55b1ad7..7d896c4 100644 --- a/src/game/g_client.c +++ b/src/game/g_client.c @@ -1428,7 +1428,7 @@ char *ClientConnect( int clientNum, qboolean firstTime ) // check to see if they are on the banned IP list value = Info_ValueForKey( userinfo, "ip" ); i = 0; - while( *value && i < sizeof( ip ) - 2 ) + while( *value && i < sizeof( ip ) - 1 ) { if( *value != '.' && ( *value < '0' || *value > '9' ) ) break; -- cgit