wmtictactoe: Avoid buffer overflow by allowing room for null terminator.
This commit is contained in:
parent
ffc4386b41
commit
139c230a8a
|
@ -544,7 +544,7 @@ escreve_placar ()
|
||||||
int coluna_xpm = 65;
|
int coluna_xpm = 65;
|
||||||
int coluna_score[6] =
|
int coluna_score[6] =
|
||||||
{8, 15, 26, 33, 43, 50 };
|
{8, 15, 26, 33, 43, 50 };
|
||||||
char placar[6];
|
char placar[7];
|
||||||
|
|
||||||
if (isDeadmatch){
|
if (isDeadmatch){
|
||||||
copyXPMArea(97, 74, 13, 9, 43, 88);
|
copyXPMArea(97, 74, 13, 9, 43, 88);
|
||||||
|
|
Loading…
Reference in a new issue