From 9b015c1322a3e8be37c476d1be5f4ef68d2b8b9c Mon Sep 17 00:00:00 2001 From: Andrey Nazarov Date: Sat, 10 Jan 2009 22:10:03 +0000 Subject: Made MinGW built OpenFFA game DLL loadable on Win32. Server now disallows ‘map’ command by default if no latched variables were changed. Added ‘sv_allow_map’ cvar to turn this check off. Implemented ‘kickban’ server command. Made address/mask matching code endianess safe. Made ‘dumpuser’ server command more verbose. Display client FPS value in the output of ‘status’ command. Fixed a crash when MVD channel with an active GTV connection was destroyed. Made it possible to re-enable old Q2 brush tracing bug via ‘map_allsolid_bug’ cvar. Added ‘allow_download_textures’ and ‘allow_download_pics’ cvar for fine tuning download options on client and server sides. Changed ‘allow_download’ default value to 0. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- source/files.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'source/files.c') diff --git a/source/files.c b/source/files.c index 9816f79..8ea2c4b 100644 --- a/source/files.c +++ b/source/files.c @@ -1236,13 +1236,9 @@ void FS_FPrintf( fileHandle_t f, const char *format, ... ) { size_t len; va_start( argptr, format ); - len = Q_vsnprintf( string, sizeof( string ), format, argptr ); + len = Q_vscnprintf( string, sizeof( string ), format, argptr ); va_end( argptr ); - if( len >= sizeof( string ) ) { - len = sizeof( string ) - 1; - } - FS_Write( string, len, f ); } -- cgit v1.2.3