Fix InputCommand patch
[gnushogi.git] / gnushogi / commondsp.c
index 48a8ef4..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 */
@@ -1798,7 +1798,7 @@ InputCommand(char *command, int root)
                    "shogi"
 #endif
                 );
-            printf("debug=1 setboard=0 sigint=0 memory=1 setboard=1 done=1\n");
+            printf("debug=1 setboard=1 sigint=0 memory=1 done=1\n");
         }
         else if (strcmp(s, ".") == 0)
         {   // periodic update request of analysis info: send stat01 info