summaryrefslogtreecommitdiff
path: root/source/files.c
diff options
context:
space:
mode:
authorAndrey Nazarov <skuller@skuller.net>2009-01-10 22:10:03 +0000
committerAndrey Nazarov <skuller@skuller.net>2009-01-10 22:10:03 +0000
commit9b015c1322a3e8be37c476d1be5f4ef68d2b8b9c (patch)
tree9fb9a7dfd9b5154ecf5d871906ec7a548aab077e /source/files.c
parent7ee7c25e791d374ef960bbfc084b23c579f8a2ed (diff)
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.
Diffstat (limited to 'source/files.c')
-rw-r--r--source/files.c6
1 files changed, 1 insertions, 5 deletions
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 );
}