Fix InputCommand patch
authorH.G.Muller <hgm@hgm-xboard.(none)>
Wed, 5 Mar 2014 21:42:18 +0000 (22:42 +0100)
committerH.G.Muller <hgm@hgm-xboard.(none)>
Wed, 5 Mar 2014 21:42:18 +0000 (22:42 +0100)
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

index b8e1ca8..4823f5f 100644 (file)
@@ -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 */