[PATCH 3/3] wmtictactoe: Avoid buffer overflow by allowing room for null terminator.

Doug Torrance <[email protected]>
Newsgroups gmane.compw.window-managers.windowmaker.devel
Message-ID <[email protected]>
---
 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);
-- 
2.7.4


-- 
To unsubscribe, send mail to [email protected].
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.