summaryrefslogtreecommitdiff
path: root/src/game/g_cmds.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/game/g_cmds.c')
-rw-r--r--src/game/g_cmds.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/game/g_cmds.c b/src/game/g_cmds.c
index 7b2b9948..664df9fa 100644
--- a/src/game/g_cmds.c
+++ b/src/game/g_cmds.c
@@ -279,7 +279,7 @@ void ScoreboardMessage( gentity_t *ent )
j = strlen( entry );
- if( stringlength + j >= 1024 )
+ if( stringlength + j >= sizeof( string ) )
break;
strcpy( string + stringlength, entry );
@@ -3138,7 +3138,7 @@ commands_t cmds[ ] = {
{ "vsay_team", CMD_MESSAGE|CMD_INTERMISSION, Cmd_VSay_f },
{ "where", 0, Cmd_Where_f }
};
-static size_t numCmds = sizeof( cmds ) / sizeof( cmds[ 0 ] );
+static size_t numCmds = ARRAY_LEN( cmds );
/*
=================