From aa2b141fe5b67216cb63023f8c2b359e2c0a02d2 Mon Sep 17 00:00:00 2001 From: H.G. Muller Date: Tue, 29 Sep 2009 22:04:25 -0700 Subject: [PATCH] bugfix for protocol extensions: egtbpath -> egtpath A new and very bad bug was discovered in the implementation of the protocol extensions: XBoard sends a command "egtbpath" to the engine in stead of "egtpath" from the protocol specs. After discussion on WB forum it was decided that egtpath was better than the egtbpath I originally had proposed, and I changed it accordingly, but I had not realized that this string occurred TWICE in backend.c, depending on if matched the -defaultPathEGTB of -egtFormats option. I only changed the first occurence. --- backend.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/backend.c b/backend.c index 47c7687..045657c 100644 --- a/backend.c +++ b/backend.c @@ -7552,7 +7552,7 @@ void SendEgtPath(ChessProgramState *cps) while(*r && *r != ',') r++; // path info is everything upto next ';' or end of string c = *r; *r = 0; // temporarily null-terminate path info *--q = 0; // strip of trailig ':' from name - sprintf(buf, "egtbpath %s %s\n", name+1, s); + sprintf(buf, "egtpath %s %s\n", name+1, s); *r = c; SendToProgram(buf,cps); // send egtbpath command for this format } -- 1.7.0.4