aboutsummaryrefslogtreecommitdiffstats
path: root/code/server
diff options
context:
space:
mode:
authorthilo <thilo@edf5b092-35ff-0310-97b2-ce42778d08ea>2008-03-25 21:36:09 +0000
committerthilo <thilo@edf5b092-35ff-0310-97b2-ce42778d08ea>2008-03-25 21:36:09 +0000
commitdac8a746a7f80b50834e750927335d8d1a00c1c1 (patch)
tree461e51086bf9daff9b03fdf6caf4513f19bff772 /code/server
parent37e48fb6ad3a6081c6bf226021b2aa30ad09673c (diff)
downloadioquake3-aero-dac8a746a7f80b50834e750927335d8d1a00c1c1.tar.gz
ioquake3-aero-dac8a746a7f80b50834e750927335d8d1a00c1c1.zip
- Replace vsprintf function in bg_lib.c with vsnprintf implementation started by Patrick Powell.
- Remove all calls to vsprintf in the engine and gamecode and replace them with calls to vsnprintf. git-svn-id: svn://svn.icculus.org/quake3/trunk@1277 edf5b092-35ff-0310-97b2-ce42778d08ea
Diffstat (limited to 'code/server')
-rw-r--r--code/server/sv_bot.c2
-rw-r--r--code/server/sv_rankings.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/code/server/sv_bot.c b/code/server/sv_bot.c
index 2996561..b0fc1e8 100644
--- a/code/server/sv_bot.c
+++ b/code/server/sv_bot.c
@@ -139,7 +139,7 @@ void QDECL BotImport_Print(int type, char *fmt, ...)
va_list ap;
va_start(ap, fmt);
- vsprintf(str, fmt, ap);
+ Q_vsnprintf(str, sizeof(str), fmt, ap);
va_end(ap);
switch(type) {
diff --git a/code/server/sv_rankings.c b/code/server/sv_rankings.c
index 844447b..90a90aa 100644
--- a/code/server/sv_rankings.c
+++ b/code/server/sv_rankings.c
@@ -1523,7 +1523,7 @@ static void SV_RankError( const char* fmt, ... )
char text[1024];
va_start( arg_ptr, fmt );
- vsprintf( text, fmt, arg_ptr );
+ Q_vsnprintf(text, sizeof(text), fmt, arg_ptr );
va_end( arg_ptr );
Com_DPrintf( "****************************************\n" );