diff options
author | Andrey Nazarov <skuller@skuller.net> | 2008-09-24 16:24:46 +0000 |
---|---|---|
committer | Andrey Nazarov <skuller@skuller.net> | 2008-09-24 16:24:46 +0000 |
commit | 3366e11bbdb586679227494f389039e6d58f8e0e (patch) | |
tree | 3ea5f70d17bdb3369a3ff3cb0e5a232e09971bbd /source/qgl_api.c | |
parent | 1cbac0b239e6cad5c4b7e1d30e1d0f32b0d8062f (diff) |
Com_sprintf -> Q_snprintf, Q_strncpyz -> Q_strlcpy, Q_strcat -> Q_strlcat.
Q_vsnprintf, Q_sprintf, Q_concat, Q_strlcpy, Q_strcat all return number of
characters to be written into the buffer regardless of overflow.
Removed COM_AppendExtension, FS_CopyFile, FS_RemoveFile, FS_CopyFile_f.
Made sure Q2PRO can only write files into subdirectories of the game directory
with a fixed extension.
Moved `play' command implementation into main client code.
Added support for `s_ambient' value of 3.
Renamed `net_log_active' cvar to `net_log_enable'.
Log files are now written into `logs/' subdirectory.
Diffstat (limited to 'source/qgl_api.c')
-rw-r--r-- | source/qgl_api.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/qgl_api.c b/source/qgl_api.c index 5494b83..3c82939 100644 --- a/source/qgl_api.c +++ b/source/qgl_api.c @@ -3393,7 +3393,7 @@ void QGL_EnableLogging( qboolean enable ) asctime( newtime ); - Com_sprintf( buffer, sizeof( buffer ), "%s/qgl.log", + Q_snprintf( buffer, sizeof( buffer ), "%s/qgl.log", Cvar_VariableString( "basedir" ) ); log_fp = fopen( buffer, "w" ); if( !log_fp ) { |