aboutsummaryrefslogtreecommitdiffstats
path: root/code/qcommon
diff options
context:
space:
mode:
authorludwig <ludwig@edf5b092-35ff-0310-97b2-ce42778d08ea>2006-12-31 15:36:42 +0000
committerludwig <ludwig@edf5b092-35ff-0310-97b2-ce42778d08ea>2006-12-31 15:36:42 +0000
commitea64cc1dc7033a1ede57f6bc278030429addeef9 (patch)
tree706b0c80eb6c002fb6ec86a6f82c304a4ad1d87d /code/qcommon
parent148f86b3d35357bea3c7b981cbbc7a77e4e3fd56 (diff)
downloadioquake3-aero-ea64cc1dc7033a1ede57f6bc278030429addeef9.tar.gz
ioquake3-aero-ea64cc1dc7033a1ede57f6bc278030429addeef9.zip
fix buffer overflow and format string bug in auth server response
processing git-svn-id: svn://svn.icculus.org/quake3/trunk@1025 edf5b092-35ff-0310-97b2-ce42778d08ea
Diffstat (limited to 'code/qcommon')
-rw-r--r--code/qcommon/net_chan.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/code/qcommon/net_chan.c b/code/qcommon/net_chan.c
index ac617cb..26f76db 100644
--- a/code/qcommon/net_chan.c
+++ b/code/qcommon/net_chan.c
@@ -719,7 +719,7 @@ void QDECL NET_OutOfBandPrint( netsrc_t sock, netadr_t adr, const char *format,
string[3] = -1;
va_start( argptr, format );
- vsprintf( string+4, format, argptr );
+ vsnprintf( string+4, sizeof(string)-4, format, argptr );
va_end( argptr );
// send the datagram