From 8810e7e13336fdc9e208d2966f3773aab8ecad82 Mon Sep 17 00:00:00 2001 From: H.G.Muller Date: Sat, 30 Aug 2014 10:58:32 +0200 Subject: [PATCH 1/1] Change default UCI name to "unknown" The old default for uninitialized strings, "", was inconvenient because it contained characters that are not allowed in filenames, and WinBoard constructs the proposed name for saving PGN from it. (Which then tickles a bug in the Windows file-browse dialog.) --- uci.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/uci.c b/uci.c index 64cbdce..bb6d0b2 100644 --- a/uci.c +++ b/uci.c @@ -130,7 +130,7 @@ void uci_open(uci_t * uci, engine_t * engine) { uci->engine = engine; uci->name = NULL; - my_string_set(&uci->name,""); + my_string_set(&uci->name,"unknown"); uci->author = NULL; my_string_set(&uci->author,""); option_init(uci->option); -- 1.7.0.4