fix buffer overflow and format string bug in auth server response

processing
This commit is contained in:
Ludwig Nussel committed 2006-12-31 15:36:42 +00:00
1 parent f6e0c6fd19
commit 8ca8d84591
2 files changed
+3 -6

No files matched your search

+1 -1
View File
@@ -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