X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=backend.c;h=f28d863fe4888d1e8d5f56b4440fb46933b85d27;hb=bc9927eb7497911debdd6bc80cab75dba837f7bc;hp=e9ae20f1650affe41255c02ea710bfa0a30d1d52;hpb=673629f5786e6f2220d65f331b9ce00aa0286930;p=xboard.git diff --git a/backend.c b/backend.c index e9ae20f..f28d863 100644 --- a/backend.c +++ b/backend.c @@ -1455,6 +1455,16 @@ read_from_ics(isr, closure, data, count, error) int tkind; char *p; +#ifdef WIN32 + if (appData.debugMode) { + if (!error) { + fprintf(debugFP, " 0) { /* If last read ended with a partial line that we couldn't parse, prepend it to the new read and try again. */ @@ -4361,7 +4371,8 @@ HandleMachineMove(message, cps) } strncpy(programStats.movelist, buf1, sizeof(programStats.movelist)); - buf1[sizeof(programStats.movelist) - 1] = NULLCHAR; + programStats.movelist[sizeof(programStats.movelist) - 1] + = NULLCHAR; } else { sprintf(programStats.movelist, " no PV\n"); }