Bump version number to 1.6
[uci2wb.git] / UCI2WB.c
index d7350a9..10f4dd6 100644 (file)
--- a/UCI2WB.c
+++ b/UCI2WB.c
@@ -1,6 +1,6 @@
 /************************* UCI2WB by H.G.Muller ****************************/\r
 \r
-#define VERSION "1.5"\r
+#define VERSION "1.6"\r
 \r
 #include <stdio.h>\r
 #include <stdlib.h>\r
@@ -227,7 +227,7 @@ Engine2GUI()
        }\r
        else if(!strcmp(command, "id")) {\r
            char name[256];\r
-           if(sscanf(line, "id name %s", name) == 1) printf("feature myname=\"%s (U%cI2WB)\"\n", name, sc-32);\r
+           if(sscanf(line, "id name %[^\n]", name) == 1) printf("feature myname=\"%s (U%cI2WB)\"\n", name, sc-32);\r
        }\r
        else if(!strcmp(command, "readyok")) { pause = 0; Sync(WAKEUP); } // resume processing of GUI commands\r
        else if(sscanf(command, "u%ciok", &c)==1 && c==sc)   printf("feature smp=1 memory=%d done=1\n", hasHash); // done with options\r