summaryrefslogtreecommitdiff
path: root/src/game/g_cmds.c
diff options
context:
space:
mode:
authorM. Kristall <mkpdev@gmail.com>2012-07-12 02:46:19 +0000
committerTim Angus <tim@ngus.net>2013-01-03 00:18:16 +0000
commit8d448680f5b3bcd2a67a3684308bb948e4d3ddad (patch)
tree8ec357b00c06d7b2e851680270690ad8e5ee3504 /src/game/g_cmds.c
parent156289dcdd27a31e77afb36147d456bac9be72a3 (diff)
* (bug 5000) refactor: use ARRAY_LEN; remove undefined functions; more size_t
(/dev/humancontroller)
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 );
/*
=================