From 307d0b4f6cf29ef2a1aa9466d4622420cc468c27 Mon Sep 17 00:00:00 2001 From: H.G. Muller Date: Wed, 8 Jun 2011 18:02:31 +0200 Subject: [PATCH] Fix parameter handling in adapter command A backslash was not considered the end of an option name, which was fatal for UCCI2WB, which needs %fd\\%fcp in its command line. --- uci.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) 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 -- 1.7.0.4