X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=menus.c;h=086c9b48195438e56c5825fb61aae7cab35b8f51;hb=6d862f543aa8a687641aaab3c77aa141c33c0f8d;hp=9d2b286229c5d5656a79881cec324a0c44af633c;hpb=ba019e81ec80db307f6a4e1fcd07f4fe259766b4;p=xboard.git diff --git a/menus.c b/menus.c index 9d2b286..086c9b4 100644 --- a/menus.c +++ b/menus.c @@ -1176,6 +1176,7 @@ InstallNewEngine (char *command, char *dir, char *variants, char *protocol) snprintf(buf + strlen(buf), MSG_SIZ - strlen(buf), " -fd %s", dir); if(!strcmp(protocol, "uci")) snprintf(buf + strlen(buf), MSG_SIZ - strlen(buf), " -fUCI"); + if(strstr(firstChessProgramNames, buf)) return; // avoid duplicats // append line quote = malloc(strlen(firstChessProgramNames) + strlen(buf) + 2); sprintf(quote, "%s%s\n", firstChessProgramNames, buf);