summaryrefslogtreecommitdiff
path: root/9.c
diff options
context:
space:
mode:
Diffstat (limited to '9.c')
-rw-r--r--9.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/9.c b/9.c
index d0c6a9f..bd19cae 100644
--- a/9.c
+++ b/9.c
@@ -50,6 +50,7 @@ main()
int ntails = 0;
tsearch(tail, &tails, point_tcmp);
+ tail = point_copy(tail);
++ntails;
fprintf(stderr, "Tail visiting %d,%d\n", tail->x, tail->y);