Update more locations that did not use explicit format patterns

This commit is contained in:
James Addison 2022-12-19 11:40:09 +00:00
parent 640a4a4fb9
commit cd02096977
9 changed files with 9 additions and 9 deletions

View file

@ -728,7 +728,7 @@ void idGameLocal::NetworkEventWarning( const entityNetEvent_t *event, const char
va_end( argptr );
idStr::Append( buf, sizeof(buf), "\n" );
common->DWarning( buf );
common->DWarning( "%s", buf );
}
/*

View file

@ -1216,7 +1216,7 @@ void idCVarSystemLocal::ListByFlags( const idCmdArgs &args, cvarFlags_t flags )
string += ( cvar->GetFlags() & CVAR_ARCHIVE ) ? "AR " : " ";
string += ( cvar->GetFlags() & CVAR_MODIFIED ) ? "MO " : " ";
string += "\n";
common->Printf( string );
common->Printf( "%s", string );
}
break;
}

View file

@ -2003,7 +2003,7 @@ void idFileSystemLocal::Path_f( const idCmdArgs &args ) {
} else {
status += ")\n";
}
common->Printf( status.c_str() );
common->Printf( "%s", status.c_str() );
}
else
{

View file

@ -876,7 +876,7 @@ void idSessionLocal::StopPlayingRenderDemo() {
float demoFPS = numDemoFrames / demoSeconds;
idStr message = va( "%i frames rendered in %3.1f seconds = %3.1f fps\n", numDemoFrames, demoSeconds, demoFPS );
common->Printf( message );
common->Printf( "%s", message );
if ( timeDemo == TD_YES_THEN_QUIT ) {
cmdSystem->BufferCommandText( CMD_EXEC_APPEND, "quit\n" );
} else {

View file

@ -1433,7 +1433,7 @@ bool idAsyncClient::ValidatePureServerChecksums( const netadr_t from, const idBi
message += va( common->GetLanguageDict()->GetString( "#str_06750" ), missingGamePakChecksum );
}
common->Printf( message );
common->Printf( "%s", message );
cmdSystem->BufferCommandText( CMD_EXEC_NOW, "disconnect" );
session->MessageBox( MSG_OK, message, common->GetLanguageDict()->GetString( "#str_06735" ), true );
} else {

View file

@ -2533,7 +2533,7 @@ void idAsyncServer::RunFrame( void ) {
idStr msg;
GetAsyncStatsAvgMsg( msg );
common->Printf( va( "%s\n", msg.c_str() ) );
common->Printf( "%s", msg.c_str() );
nextAsyncStatsTime = serverTime + 1000;
}

View file

@ -319,7 +319,7 @@ PrintClocks
void PrintClocks( char *string, int dataCount, int clocks, int otherClocks = 0 ) {
int i;
idLib::common->Printf( string );
idLib::common->Printf( "%s", string );
for ( i = idStr::LengthWithoutColors(string); i < 48; i++ ) {
idLib::common->Printf(" ");
}

View file

@ -629,7 +629,7 @@ static void R_CheckPortableExtensions( void ) {
// check for minimum set
if ( !glConfig.multitextureAvailable || !glConfig.textureEnvCombineAvailable || !glConfig.cubeMapAvailable
|| !glConfig.envDot3Available ) {
common->Error( common->GetLanguageDict()->GetString( "#str_06780" ) );
common->Error( "%s", common->GetLanguageDict()->GetString( "#str_06780" ) );
}
// GL_EXT_depth_bounds_test

View file

@ -55,7 +55,7 @@ void DisplayRealTimeString( char *string, ... ) {
va_start( argPtr, string );
vsprintf( buf, string, argPtr );
va_end( argPtr );
common->Printf( buf );
common->Printf( "%s", buf );
lastUpdateTime = time;
}
}