Fix detection of "otim".
authorYann Dirson <ydirson@free.fr>
Fri, 21 Feb 2014 22:09:51 +0000 (23:09 +0100)
committerYann Dirson <ydirson@free.fr>
Sat, 22 Feb 2014 09:44:45 +0000 (10:44 +0100)
Wrong use of parentheses caused condition to be meaningless (my bad).

gnushogi/commondsp.c

index 5f5b5bf..5e87fb4 100644 (file)
@@ -1735,8 +1735,8 @@ InputCommand(char *command)
         {
             SetMachineTime(sx + strlen("time"));
         }
-        else if (strcmp(s, "otime") == 0 ||
-                 (xboard && strcmp(s, "otim")) == 0)
+        else if ((strcmp(s, "otime") == 0) ||
+                 (xboard && (strcmp(s, "otim")) == 0))
         {
             SetOppTime(sx + strlen("otime"));
         }