Fix MaxQi printinf variants
authorH.G. Muller <h.g.muller@hccnet.nl>
Wed, 23 Oct 2013 18:47:16 +0000 (20:47 +0200)
committerH.G. Muller <h.g.muller@hccnet.nl>
Wed, 23 Oct 2013 18:47:16 +0000 (20:47 +0200)
The bug that with some compilers made Fairy-Max fail reading its ini file
was still present in MaxQi, and doing the same thing there.

maxqi.c

diff --git a/maxqi.c b/maxqi.c
index 1ee059f..f050292 100644 (file)
--- a/maxqi.c
+++ b/maxqi.c
@@ -382,7 +382,7 @@ void CopyBoard(int s)
                                          \r
 void PrintVariants()\r
 {\r
-        int i, j, count=0; char c, buf[80];\r
+        int i, j, count=0; char c = EOF+1, buf[80];\r
         FILE *f;\r
 \r
         f = fopen(inifile, "r");\r