X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=uci.c;h=dc135b2c74c83b00f0dbbf1711e4aa84a58d9a90;hb=8e75200591104332de2a6272fa910f9ab30f3431;hp=1f39f6a84112cf9ce003915fe8a7fe54daea0d44;hpb=36aefa2380480aa22c30c0a8c02a02fb961d600f;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