From: H.G. Muller Date: Thu, 5 Jul 2012 19:53:37 +0000 (+0200) Subject: Fix signals for Linux, input-buffer overrun X-Git-Tag: 0.18~102 X-Git-Url: http://winboard.nl/cgi-bin?a=commitdiff_plain;h=b00d14d903535e48f903d9b0aa0f9c37189944c0;p=hachu.git Fix signals for Linux, input-buffer overrun --- 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