Fix signals for Linux, input-buffer overrun
authorH.G. Muller <h.g.muller@hccnet.nl>
Thu, 5 Jul 2012 19:53:37 +0000 (21:53 +0200)
committerH.G. Muller <h.g.muller@hccnet.nl>
Thu, 5 Jul 2012 20:00:46 +0000 (22:00 +0200)
hachu.c

diff --git a/hachu.c b/hachu.c
index 2133ce9..fff5cba 100644 (file)
--- a/hachu.c
+++ b/hachu.c
@@ -1295,6 +1295,8 @@ if(PATH) pmap(attacks, stm);
       score = 0;\r
 #endif\r
     abortMove:\r
+\r
+\r
 attacks -= 2*BSIZE;\r
 level--;\r
       UnMake(&tb);\r
@@ -1642,7 +1644,7 @@ printf("# setup done");fflush(stdout);
       int maxDepth;                            // used by search\r
       MOVE move, ponderMove;\r
       int i, score;\r
-      char inBuf[80], command[80];\r
+      char inBuf[8000], command[80];\r
 \r
   Init();\r
   SetUp(chuArray, chuPieces);\r
@@ -1714,7 +1716,7 @@ printf("in: %s\n", command);
           continue;\r
         }\r
         if(!strcmp(command, "protover")){\r
-          printf("feature ping=1 setboard=1 colors=0 usermove=1 memory=1 debug=1\n");\r
+          printf("feature ping=1 setboard=1 colors=0 usermove=1 memory=1 debug=1 sigint=0 sigterm=0\n");\r
           printf("feature variants=\"chu,12x12+0_fairy\"\n");\r
           printf("feature highlight=1\n");\r
           printf("feature option=\"Resign -check 0\"\n");           // example of an engine-defined option\r