X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=uci.c;h=55aaff5defe90e554cf52d31e298847b6be133a0;hb=f29ff21f23c2a22fc55e14ba48c53d704c22289d;hp=1f39f6a84112cf9ce003915fe8a7fe54daea0d44;hpb=36aefa2380480aa22c30c0a8c02a02fb961d600f;p=xboard.git diff --git a/uci.c b/uci.c index 1f39f6a..55aaff5 100644 --- a/uci.c +++ b/uci.c @@ -23,6 +23,7 @@ * ------------------------------------------------------------------------ */ #include +#include #include #include @@ -47,7 +48,7 @@ void InitEngineUCI( const char * iniDir, ChessProgramState * cps ) *s++ = cps == &first ? 'f' : 's'; p++; } - while(*p >= '0' && *p) *s++ = *p++; // copy option name + while(isdigit(*p) || isalpha(*p)) *s++ = *p++; // copy option name *s = NULLCHAR; if(cps == &second) { // change options for first into those for second engine if(strstr(buf, "first") == buf) sprintf(argName, "second%s", buf+5); else