X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=uci.c;fp=uci.c;h=dc135b2c74c83b00f0dbbf1711e4aa84a58d9a90;hb=307d0b4f6cf29ef2a1aa9466d4622420cc468c27;hp=1f39f6a84112cf9ce003915fe8a7fe54daea0d44;hpb=a5b96d3b2d6ae8d63ff14bb0e4e01b0b4ac32b63;p=xboard.git diff --git a/uci.c b/uci.c index 1f39f6a..dc135b2 100644 --- a/uci.c +++ b/uci.c @@ -47,7 +47,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