From owner-freebsd-bugs Tue Aug 28 22:30: 7 2001 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id BA5C037B408 for ; Tue, 28 Aug 2001 22:30:01 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.4/8.11.4) id f7T5U1215903; Tue, 28 Aug 2001 22:30:01 -0700 (PDT) (envelope-from gnats) Date: Tue, 28 Aug 2001 22:30:01 -0700 (PDT) Message-Id: <200108290530.f7T5U1215903@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org Cc: From: Dima Dorfman Subject: Re: misc/30172: Segmentation fault in teachgammon Reply-To: Dima Dorfman Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org The following reply was made to PR misc/30172; it has been noted by GNATS. From: Dima Dorfman To: Chris Wilmes Cc: freebsd-gnats-submit@FreeBSD.org Subject: Re: misc/30172: Segmentation fault in teachgammon Date: Tue, 28 Aug 2001 22:24:54 -0700 Chris Wilmes wrote: Please wrap lines at or less than 80 characters. Thanks. > >Description: > Segmentation fault in teachgammon (the backgammon tutorial in /usr/games) when returning to main menu from some other menu. > > Problem also occurs on a friend's machine, which is running FreeBSD-current. > >How-To-Repeat: > Run the following commands: > % teachgammon (starts the program) > (takes user to main menu after initial screen) > i (takes user to Introduction) > ? (is supposed to return user to main menu, but instead causes segmentation fault) Please try this patch: (apply in src/games/backgammon/teachgammon) Index: ttext2.c =================================================================== RCS file: /ref/cvsf/src/games/backgammon/teachgammon/ttext2.c,v retrieving revision 1.3 diff -u -r1.3 ttext2.c --- ttext2.c 30 Nov 1999 03:48:30 -0000 1.3 +++ ttext2.c 29 Aug 2001 05:23:04 -0000 @@ -41,7 +41,8 @@ #include "back.h" -char *prompt, *list, *opts; +extern const char *const list[]; +char *prompt, *opts; const char *const doubl[] = { "\nDoubling:", To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message