From b00d14d903535e48f903d9b0aa0f9c37189944c0 Mon Sep 17 00:00:00 2001 From: H.G. Muller Date: Thu, 5 Jul 2012 21:53:37 +0200 Subject: [PATCH] Fix signals for Linux, input-buffer overrun --- hachu.c | 6 ++++-- 1 files changed, 4 insertions(+), 2 deletions(-) diff --git a/hachu.c b/hachu.c index 2133ce9..fff5cba 100644 --- a/hachu.c +++ b/hachu.c @@ -1295,6 +1295,8 @@ if(PATH) pmap(attacks, stm); score = 0; #endif abortMove: + + attacks -= 2*BSIZE; level--; UnMake(&tb); @@ -1642,7 +1644,7 @@ printf("# setup done");fflush(stdout); int maxDepth; // used by search MOVE move, ponderMove; int i, score; - char inBuf[80], command[80]; + char inBuf[8000], command[80]; Init(); SetUp(chuArray, chuPieces); @@ -1714,7 +1716,7 @@ printf("in: %s\n", command); continue; } if(!strcmp(command, "protover")){ - printf("feature ping=1 setboard=1 colors=0 usermove=1 memory=1 debug=1\n"); + printf("feature ping=1 setboard=1 colors=0 usermove=1 memory=1 debug=1 sigint=0 sigterm=0\n"); printf("feature variants=\"chu,12x12+0_fairy\"\n"); printf("feature highlight=1\n"); printf("feature option=\"Resign -check 0\"\n"); // example of an engine-defined option -- 1.7.0.4