mirror of
https://github.com/nillerusr/source-engine.git
synced 2026-08-08 09:49:36 +00:00
game: fix string vulnerabilities
This commit is contained in:
@@ -238,7 +238,7 @@ void CTextMessagePanel::AddChar( int r, int g, int b, int a, wchar_t ch )
|
||||
//-----------------------------------------------------------------------------
|
||||
void CTextMessagePanel::GetTextExtents( int *wide, int *tall, const char *string )
|
||||
{
|
||||
*wide = g_pMatSystemSurface->DrawTextLen( m_hFont, (char *)string );
|
||||
*wide = g_pMatSystemSurface->DrawTextLen( m_hFont, "%s", (char *)string );
|
||||
*tall = vgui::surface()->GetFontTall( m_hFont );
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user