X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=UCI2WB.c;h=10f4dd64e69d38625a42376253d6751174aeb0d0;hb=dc007e1364c2beb3023e8ec4535b67b1dece028f;hp=d7350a97aa43b25d8b658f95d3d49f35e22393c7;hpb=5a5534346fd682f786f70694ab3e77d0ea653e3d;p=uci2wb.git diff --git a/UCI2WB.c b/UCI2WB.c index d7350a9..10f4dd6 100644 --- a/UCI2WB.c +++ b/UCI2WB.c @@ -1,6 +1,6 @@ /************************* UCI2WB by H.G.Muller ****************************/ -#define VERSION "1.5" +#define VERSION "1.6" #include #include @@ -227,7 +227,7 @@ Engine2GUI() } else if(!strcmp(command, "id")) { char name[256]; - if(sscanf(line, "id name %s", name) == 1) printf("feature myname=\"%s (U%cI2WB)\"\n", name, sc-32); + if(sscanf(line, "id name %[^\n]", name) == 1) printf("feature myname=\"%s (U%cI2WB)\"\n", name, sc-32); } else if(!strcmp(command, "readyok")) { pause = 0; Sync(WAKEUP); } // resume processing of GUI commands else if(sscanf(command, "u%ciok", &c)==1 && c==sc) printf("feature smp=1 memory=%d done=1\n", hasHash); // done with options