X-Git-Url: http://winboard.nl/cgi-bin?p=uci2wb.git;a=blobdiff_plain;f=UCI2WB.c;h=77b671b7b633cefba7715f06e5f0076b82ec0635;hp=7aaad84cfad34cefe20b4e9197c3233116fc472f;hb=d4c964cc8830407dbc9efa12a1d50e4ce48b711a;hpb=8fa58cb5e2b3452a9baa92ce046ec92b5fd55960 diff --git a/UCI2WB.c b/UCI2WB.c index 7aaad84..77b671b 100644 --- a/UCI2WB.c +++ b/UCI2WB.c @@ -383,7 +383,7 @@ GUI2Engine() nomove: fflush(toE); fflush(stdout); i = 0; while((x = getchar()) != EOF && (line[i] = x) != '\n') i++; - line[++i] = 0; if(x == EOF) { printf("# EOF\n"); exit(-1); } + line[++i] = 0; if(x == EOF) { printf("# EOF\n"); fprintf(toE, "quit\n"); exit(-1); } sscanf(line, "%s", command); if(!strcmp(command, "new")) { computer = BLACK; moveNr = 0; depth = -1; move[0][0] = 0;