diff options
Diffstat (limited to 'code/ui/ui_atoms.c')
-rw-r--r-- | code/ui/ui_atoms.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/code/ui/ui_atoms.c b/code/ui/ui_atoms.c index 1a2780f..50c4ed6 100644 --- a/code/ui/ui_atoms.c +++ b/code/ui/ui_atoms.c @@ -34,7 +34,7 @@ void QDECL Com_Error( int level, const char *error, ... ) { char text[1024]; va_start (argptr, error); - vsprintf (text, error, argptr); + Q_vsnprintf (text, sizeof(text), error, argptr); va_end (argptr); trap_Error( va("%s", text) ); @@ -45,7 +45,7 @@ void QDECL Com_Printf( const char *msg, ... ) { char text[1024]; va_start (argptr, msg); - vsprintf (text, msg, argptr); + Q_vsnprintf (text, sizeof(text), msg, argptr); va_end (argptr); trap_Print( va("%s", text) ); |