summaryrefslogtreecommitdiffstats
path: root/games/backgammon
diff options
context:
space:
mode:
authordd <dd@FreeBSD.org>2001-09-03 14:19:46 +0000
committerdd <dd@FreeBSD.org>2001-09-03 14:19:46 +0000
commit462c9be3521e5c023cb6de38a0c75320fa52df2d (patch)
tree31135e6ccbf558ec189445f58365104f7a8a77af /games/backgammon
parentb7b50a3fa3429550f242dbdd9897e59da3fc05ce (diff)
downloadFreeBSD-src-462c9be3521e5c023cb6de38a0c75320fa52df2d.zip
FreeBSD-src-462c9be3521e5c023cb6de38a0c75320fa52df2d.tar.gz
`list' should be an extern'd `char **', not a local `char *' which we
never set. Ideally, we'd get the extern from tutor.h, but that defines a number of other variables that conflict with ours. This fixes a segmentation fault when trying to return to the main menu. PR: 30172
Diffstat (limited to 'games/backgammon')
-rw-r--r--games/backgammon/teachgammon/ttext2.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/games/backgammon/teachgammon/ttext2.c b/games/backgammon/teachgammon/ttext2.c
index f6ca2c3..d64659ef 100644
--- a/games/backgammon/teachgammon/ttext2.c
+++ b/games/backgammon/teachgammon/ttext2.c
@@ -41,7 +41,8 @@ static const char rcsid[] =
#include "back.h"
-char *prompt, *list, *opts;
+extern const char *const list[];
+char *prompt, *opts;
const char *const doubl[] = {
"\nDoubling:",
OpenPOWER on IntegriCloud