X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=backend.c;h=b0d93515caf8913277c9d116f5ac731a3e4ee34c;hb=2981982916736a59e84ac7cc8abc241193c9ecf2;hp=fda11712802e830c6ae17d857c9c4275965aa041;hpb=93f5fd7cd4ec0867ccbccf1f1d8360c321b5d354;p=xboard.git diff --git a/backend.c b/backend.c index fda1171..b0d9351 100644 --- a/backend.c +++ b/backend.c @@ -12549,7 +12549,11 @@ ParseFeatures(args, cps) if (BoolFeature(&p, "smp", &cps->maxCores, cps)) continue; if (StringFeature(&p, "egt", &cps->egtFormats, cps)) continue; if (StringFeature(&p, "option", &(cps->option[cps->nrOptions].name), cps)) { - ParseOption(&(cps->option[cps->nrOptions++]), cps); // [HGM] options: add option feature + if(!ParseOption(&(cps->option[cps->nrOptions++]), cps)) { // [HGM] options: add option feature + sprintf(buf, "rejected option %s\n", cps->option[--cps->nrOptions].name); + SendToProgram(buf, cps); + continue; + } if(cps->nrOptions >= MAX_OPTIONS) { cps->nrOptions--; sprintf(buf, "%s engine has too many options\n", cps->which);