Date: Tue, 28 Aug 2001 22:30:01 -0700 (PDT) From: Dima Dorfman <dima@unixfreak.org> To: freebsd-bugs@FreeBSD.org Subject: Re: misc/30172: Segmentation fault in teachgammon Message-ID: <200108290530.f7T5U1215903@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR misc/30172; it has been noted by GNATS. From: Dima Dorfman <dima@unixfreak.org> To: Chris Wilmes <cwilmes@creighton.edu> 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 <cwilmes@creighton.edu> 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) > <space> (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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200108290530.f7T5U1215903>