Merge pull request #167 from samisalreadytaken/secfix

Security fixes
This commit is contained in:
Blixibon
2022-01-08 23:31:39 -06:00
committed by GitHub
4 changed files with 19 additions and 13 deletions

View File

@@ -929,7 +929,7 @@ bool ScriptIsClient()
// Notification printing on the right edge of the screen
void NPrint( int pos, const char* fmt )
{
engine->Con_NPrintf(pos, fmt);
engine->Con_NPrintf( pos, "%s", fmt );
}
void NXPrint( int pos, int r, int g, int b, bool fixed, float ftime, const char* fmt )
@@ -943,7 +943,7 @@ void NXPrint( int pos, int r, int g, int b, bool fixed, float ftime, const char*
info.color[2] = b / 255.f;
info.fixed_width_font = fixed;
engine->Con_NXPrintf( &info, fmt );
engine->Con_NXPrintf( &info, "%s", fmt );
}
static float IntervalPerTick()