From: Andrew Valencia <vandys@cisco.com>
authorChristoph Robitschko <chmr@edvz.tu-graz.ac.at>
Tue, 23 Nov 1993 18:51:43 +0000 (18:51 +0000)
committerChristoph Robitschko <chmr@edvz.tu-graz.ac.at>
Tue, 23 Nov 1993 18:51:43 +0000 (18:51 +0000)
backgammon will core dump if the optimizer is used to compile the game.
Add the following patch to /usr/src/backgammon/backgammon/move.c to fix this.
From: chmr
Another small fix (remove new element from the free list).

games/backgammon/backgammon/move.c

index 17a5dfd..f15bcda 100644 (file)
@@ -354,6 +354,8 @@ nextfree ()  {
 
        new = freeq;
        freeq = freeq->b_next;
 
        new = freeq;
        freeq = freeq->b_next;
+       new->b_next = 0;
+       return (news);
 }
 \f
 pickmove ()  {
 }
 \f
 pickmove ()  {