fixed the condump path argument truncation

This commit is contained in:
myT 2018-01-28 03:45:35 +01:00
parent c4135557ad
commit d3d4746a6b
2 changed files with 3 additions and 1 deletions

View File

@ -21,6 +21,8 @@ chg: on Windows, a fatal error will move the early console window to the foregro
chg: com_hunkMegs doesn't have a maximum value anymore
a value too high would reset it and the engine might fail to load with the default value
fix: the condump command was truncating its file path argument to 64 characters
fix: "timedemo" playback runs at full speed again
fix: on Windows, when unfocused, the client would always sleep 5+ ms regardless of com_maxFPS

View File

@ -286,7 +286,7 @@ void Con_Dump_f( void )
return;
}
Q_strncpyz( buffer, Cmd_Argv(1), MAX_QPATH - 4 );
Q_strncpyz( buffer, Cmd_Argv(1), sizeof(buffer) );
COM_DefaultExtension( buffer, sizeof(buffer), ".txt" );
fileHandle_t f = FS_FOpenFileWrite( buffer );