mirror of
https://github.com/DrBeef/ioq3quest.git
synced 2024-11-26 22:11:18 +00:00
Fix potential OOB in Windows Dedicated TTY CON_Show
Found by Coverity.
This commit is contained in:
parent
077ab4cbd1
commit
347b429fdb
1 changed files with 1 additions and 1 deletions
|
@ -208,7 +208,7 @@ static void CON_Show( void )
|
|||
{
|
||||
if( i < qconsole_linelen )
|
||||
{
|
||||
if( Q_IsColorString( qconsole_line + i ) )
|
||||
if( i + 1 < qconsole_linelen && Q_IsColorString( qconsole_line + i ) )
|
||||
attrib = CON_ColorCharToAttrib( *( qconsole_line + i + 1 ) );
|
||||
|
||||
line[ i ].Char.AsciiChar = qconsole_line[ i ];
|
||||
|
|
Loading…
Reference in a new issue