summaryrefslogtreecommitdiff
path: root/src/game/g_admin.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/game/g_admin.c')
-rw-r--r--src/game/g_admin.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/game/g_admin.c b/src/game/g_admin.c
index deaedf35..bf0bba33 100644
--- a/src/game/g_admin.c
+++ b/src/game/g_admin.c
@@ -752,7 +752,7 @@ static int admin_listadmins( gentity_t *ent, int start, char *search )
if( !strstr( name, search ) )
continue;
- for( j = 0; j <= 8; j++ )
+ for( j = 0; j < 8; j++ )
guid_stub[ j ] = vic->client->pers.guid[ j + 24 ];
guid_stub[ j ] = '\0';
@@ -808,7 +808,7 @@ static int admin_listadmins( gentity_t *ent, int start, char *search )
if( dup )
continue;
}
- for( j = 0; j <= 8; j++ )
+ for( j = 0; j < 8; j++ )
guid_stub[ j ] = g_admin_admins[ i ]->guid[ j + 24 ];
guid_stub[ j ] = '\0';
@@ -1765,7 +1765,7 @@ qboolean G_admin_ban( gentity_t *ent, int skiparg )
ADMBP( "^3!ban: ^7multiple recent clients match name, use IP or slot#:\n" );
for( i = 0; i < MAX_ADMIN_NAMELOGS && g_admin_namelog[ i ]; i++ )
{
- for( j = 0; j <= 8; j++ )
+ for( j = 0; j < 8; j++ )
guid_stub[ j ] = g_admin_namelog[ i ]->guid[ j + 24 ];
guid_stub[ j ] = '\0';
for( j = 0; j < MAX_ADMIN_NAMELOG_NAMES &&
@@ -2253,7 +2253,7 @@ qboolean G_admin_listplayers( gentity_t *ent, int skiparg )
continue;
}
- for( j = 0; j <= 8; j++ )
+ for( j = 0; j < 8; j++ )
guid_stub[ j ] = p->pers.guid[ j + 24 ];
guid_stub[ j ] = '\0';
@@ -2829,7 +2829,7 @@ qboolean G_admin_namelog( gentity_t *ent, int skiparg )
continue;
}
printed++;
- for( j = 0; j <= 8; j++ )
+ for( j = 0; j < 8; j++ )
guid_stub[ j ] = g_admin_namelog[ i ]->guid[ j + 24 ];
guid_stub[ j ] = '\0';
if( g_admin_namelog[ i ]->slot > -1 )