From: H.G. Muller Date: Wed, 20 Mar 2013 16:50:33 +0000 (+0100) Subject: Fix quoting of book name in tourney file X-Git-Url: http://winboard.nl/cgi-bin?a=commitdiff_plain;h=69994861940c13db1466c8ed7397dfe61ff2e4c8;p=xboard.git Fix quoting of book name in tourney file The argument of -polyglotBook was written to the tourney file unquoted, which effectively made it disappear if it was an empty or blank string. --- diff --git a/backend.c b/backend.c index 4af9b0a..f9995d9 100644 --- a/backend.c +++ b/backend.c @@ -10133,7 +10133,7 @@ WriteTourneyFile (char *results, FILE *f) fprintf(f, "-loadPositionIndex %d\n", appData.loadPositionIndex); fprintf(f, "-rewindIndex %d\n", appData.rewindIndex); fprintf(f, "-usePolyglotBook %s\n", appData.usePolyglotBook ? "true" : "false"); - fprintf(f, "-polyglotBook %s\n", appData.polyglotBook); + fprintf(f, "-polyglotBook \"%s\"\n", appData.polyglotBook); fprintf(f, "-bookDepth %d\n", appData.bookDepth); fprintf(f, "-bookVariation %d\n", appData.bookStrength); fprintf(f, "-discourageOwnBooks %s\n", appData.defNoBook ? "true" : "false");