From 69994861940c13db1466c8ed7397dfe61ff2e4c8 Mon Sep 17 00:00:00 2001 From: H.G. Muller Date: Wed, 20 Mar 2013 17:50:33 +0100 Subject: [PATCH] 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. --- backend.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) 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"); -- 1.7.0.4