From 7980e7ce4355494d271bb0819bdd71711bd7980f Mon Sep 17 00:00:00 2001 From: H.G. Muller Date: Sat, 28 Nov 2009 13:33:52 -0800 Subject: [PATCH] fix problem with empty string in -firstNeedsNoncompliantFEN This fixes a bug in the use of the -firstNeedsNoncompliantFEN option with an empty string as argument. (Which led to truncation of the FEN.) --- backend.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/backend.c b/backend.c index c2dea7c..339da00 100755 --- a/backend.c +++ b/backend.c @@ -13683,7 +13683,7 @@ PositionToFEN(move, overrideCastling) *p++ = ' '; if(q = overrideCastling) { // [HGM] FRC: override castling & e.p fields for non-compliant engines - while(*p++ = *q++); if(q != overrideCastling+1) p[-1] = ' '; + while(*p++ = *q++); if(q != overrideCastling+1) p[-1] = ' '; else --p; } else { if(nrCastlingRights) { q = p; -- 1.7.0.4