diff options
Diffstat (limited to 'src/ui/ui_atoms.c')
-rw-r--r-- | src/ui/ui_atoms.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/ui/ui_atoms.c b/src/ui/ui_atoms.c index 71374ab3..822cecfd 100644 --- a/src/ui/ui_atoms.c +++ b/src/ui/ui_atoms.c @@ -35,9 +35,9 @@ void QDECL Com_Error( int level, const char *error, ... ) va_list argptr; char text[1024]; - va_start ( argptr, error ); - vsprintf ( text, error, argptr ); - va_end ( argptr ); + va_start( argptr, error ); + Q_vsnprintf( text, sizeof( text ), error, argptr ); + va_end( argptr ); trap_Error( va( "%s", text ) ); } @@ -47,9 +47,9 @@ void QDECL Com_Printf( const char *msg, ... ) va_list argptr; char text[1024]; - va_start ( argptr, msg ); - vsprintf ( text, msg, argptr ); - va_end ( argptr ); + va_start( argptr, msg ); + Q_vsnprintf( text, sizeof( text ), msg, argptr ); + va_end( argptr ); trap_Print( va( "%s", text ) ); } |