diff options
| author | frueauf <frueauf@NetBSD.org> | 1998-09-15 13:43:34 +0000 |
|---|---|---|
| committer | frueauf <frueauf@NetBSD.org> | 1998-09-15 13:43:34 +0000 |
| commit | ad506eb7a09fcd961c8a7ce461dffb65bac194f1 (patch) | |
| tree | bf0e60460823fa2e2ac72f45223e716233746e98 /games/backgammon/common_source | |
| parent | 0ad1257addc6daecaaf15a2f5a19bf5df4ab24a7 (diff) | |
Fix args processing of backgammon and teachgammon, closes pr 5345 by
David Brownlee.
Diffstat (limited to 'games/backgammon/common_source')
| -rw-r--r-- | games/backgammon/common_source/subs.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/games/backgammon/common_source/subs.c b/games/backgammon/common_source/subs.c index e1017713a8c..95375f8cd5b 100644 --- a/games/backgammon/common_source/subs.c +++ b/games/backgammon/common_source/subs.c @@ -1,4 +1,4 @@ -/* $NetBSD: subs.c,v 1.8 1998/09/13 15:19:35 hubertf Exp $ */ +/* $NetBSD: subs.c,v 1.9 1998/09/15 13:43:35 frueauf Exp $ */ /* * Copyright (c) 1980, 1993 @@ -38,7 +38,7 @@ #if 0 static char sccsid[] = "@(#)subs.c 8.1 (Berkeley) 5/31/93"; #else -__RCSID("$NetBSD: subs.c,v 1.8 1998/09/13 15:19:35 hubertf Exp $"); +__RCSID("$NetBSD: subs.c,v 1.9 1998/09/15 13:43:35 frueauf Exp $"); #endif #endif /* not lint */ @@ -324,7 +324,7 @@ getarg(arg) * the game is being recovered */ s = *arg; - while (s[0][0] == '-') { + while (*s && s[0][0] == '-') { switch (s[0][1]) { /* don't ask if rules or instructions needed */ |
