Fix crash by input-buffer overrun
authorH.G.Muller <hgm@hgm-xboard.(none)>
Mon, 6 Feb 2017 21:38:37 +0000 (22:38 +0100)
committerH.G.Muller <hgm@hgm-xboard.(none)>
Mon, 6 Feb 2017 21:38:37 +0000 (22:38 +0100)
The input buffer was too small to hold Wa-Shogi FENs.

dropper.c

index 5acff77..36d9220 100644 (file)
--- a/dropper.c
+++ b/dropper.c
@@ -1585,7 +1585,7 @@ void PrintResult(int stm, int score)
 
 int engineSide=NONE;         // side played by engine
 int ponderMove;
-char inBuf[80];
+char inBuf[800];
 
 void
 ReadLine ()