Fixed an error I made when cleaning up Daniel's long PV patch.
authorTim Mann <tim@tim-mann.org>
Mon, 24 Nov 2003 04:48:13 +0000 (04:48 +0000)
committerTim Mann <tim@tim-mann.org>
Mon, 24 Nov 2003 04:48:13 +0000 (04:48 +0000)
backend.c

index e9ae20f..b9e1df5 100644 (file)
--- a/backend.c
+++ b/backend.c
@@ -4361,7 +4361,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");
                }