summaryrefslogtreecommitdiff
path: root/source/files.c
diff options
context:
space:
mode:
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 );
}