summaryrefslogtreecommitdiff
path: root/src/cgame
diff options
context:
space:
mode:
authorTim Angus <tim@ngus.net>2009-10-03 11:52:53 +0000
committerTim Angus <tim@ngus.net>2013-01-03 00:15:28 +0000
commitb47a49a03370e7ea42f47623b9f72a5ca799f0e7 (patch)
tree9d64d778ded2971d7ebd05970d903d886bd81436 /src/cgame
parent09ceb08b95978feb0a9b737f22ac0f662c7465d6 (diff)
* Merge ioq3-r1423
+ IPv6 + VoIP + Stereo rendering + Other minor stuff
Diffstat (limited to 'src/cgame')
-rw-r--r--src/cgame/cg_main.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/cgame/cg_main.c b/src/cgame/cg_main.c
index 070992bd..8f2996f2 100644
--- a/src/cgame/cg_main.c
+++ b/src/cgame/cg_main.c
@@ -513,7 +513,7 @@ void QDECL CG_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( text );
@@ -525,7 +525,7 @@ void QDECL CG_Error( 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_Error( text );
@@ -537,7 +537,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 );
CG_Error( "%s", text );
@@ -547,9 +547,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 );
CG_Printf ("%s", text);
}