From: Yann Dirson Date: Fri, 21 Feb 2014 22:09:51 +0000 (+0100) Subject: Fix detection of "otim". X-Git-Url: http://winboard.nl/cgi-bin?p=gnushogi.git;a=commitdiff_plain;h=a6f49d3554654e23ce1d4c3b04a8c10df0d735c6 Fix detection of "otim". Wrong use of parentheses caused condition to be meaningless (my bad). --- diff --git a/gnushogi/commondsp.c b/gnushogi/commondsp.c index 5f5b5bf..5e87fb4 100644 --- a/gnushogi/commondsp.c +++ b/gnushogi/commondsp.c @@ -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")); }