From 139c230a8a5bf238b4d6f08918a3abf2ea849afb Mon Sep 17 00:00:00 2001 From: Doug Torrance Date: Sun, 5 Mar 2017 20:45:57 -0500 Subject: [PATCH] wmtictactoe: Avoid buffer overflow by allowing room for null terminator. --- wmtictactoe/wmtictactoe/wmtictactoe.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wmtictactoe/wmtictactoe/wmtictactoe.c b/wmtictactoe/wmtictactoe/wmtictactoe.c index 5b97115..1fc88e4 100644 --- a/wmtictactoe/wmtictactoe/wmtictactoe.c +++ b/wmtictactoe/wmtictactoe/wmtictactoe.c @@ -544,7 +544,7 @@ escreve_placar () int coluna_xpm = 65; int coluna_score[6] = {8, 15, 26, 33, 43, 50 }; - char placar[6]; + char placar[7]; if (isDeadmatch){ copyXPMArea(97, 74, 13, 9, 43, 88);