summaryrefslogtreecommitdiff
path: root/src/game/g_client.c
diff options
context:
space:
mode:
author/dev/humancontroller <devhc@example.com>2017-04-13 11:30:00 +0000
committer/dev/humancontroller <devhc@example.com>2017-04-15 17:24:17 +0200
commitcd49cf0aac55f7dcffd4f0a9448c5296961a915e (patch)
tree48ea4d2b71bb7acca9c432d3ce7fdfd5513de287 /src/game/g_client.c
parentfe397ee4be366dc911a31ab92eb4bc2ff7031570 (diff)
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
Diffstat (limited to 'src/game/g_client.c')
-rw-r--r--src/game/g_client.c2
1 files changed, 1 insertions, 1 deletions
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;