aboutsummaryrefslogtreecommitdiffstats
path: root/code/game/g_team.c
diff options
context:
space:
mode:
Diffstat (limited to 'code/game/g_team.c')
-rw-r--r--code/game/g_team.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/code/game/g_team.c b/code/game/g_team.c
index 96dddbf..ca5341d 100644
--- a/code/game/g_team.c
+++ b/code/game/g_team.c
@@ -108,7 +108,7 @@ void QDECL PrintMsg( gentity_t *ent, const char *fmt, ... ) {
char *p;
va_start (argptr,fmt);
- if (vsprintf (msg, fmt, argptr) > sizeof(msg)) {
+ if (Q_vsnprintf (msg, sizeof(msg), fmt, argptr) > sizeof(msg)) {
G_Error ( "PrintMsg overrun" );
}
va_end (argptr);