From 1659d737d4bae32618488aa12eedba627ea13d60 Mon Sep 17 00:00:00 2001 From: H.G.Muller Date: Wed, 5 Mar 2014 22:42:18 +0100 Subject: [PATCH] Fix InputCommand patch There was a done=true in InputCommand that caused only a single command to be parsed when a command argument was given (and thus also when a backlogged command was processed). This led to the engine immediately starting thinking after interruption of ponder, in stead of waiting for the input move to be processed, with obviously fatal consequences. --- gnushogi/commondsp.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/gnushogi/commondsp.c b/gnushogi/commondsp.c index b8e1ca8..4823f5f 100644 --- a/gnushogi/commondsp.c +++ b/gnushogi/commondsp.c @@ -1719,7 +1719,7 @@ InputCommand(char *command, int root) } else { strcpy(sx, command); backlog[0]= '\0'; /* make sure no backlog is left */ - done = true; + command = NULL; } /* extract first word */ -- 1.7.0.4