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 | c76c7a1e76aa07245fba38d91779b4488ff23932 (patch) | |
tree | 9e2e4fe9158f107b606de48a933c9bcbee51bc13 /backgammon/common_source | |
parent | 1a4377e3eab674eb0dea5754d260d93988f1151a (diff) | |
download | bsdgames-darwin-c76c7a1e76aa07245fba38d91779b4488ff23932.tar.gz bsdgames-darwin-c76c7a1e76aa07245fba38d91779b4488ff23932.tar.zst bsdgames-darwin-c76c7a1e76aa07245fba38d91779b4488ff23932.zip |
Fix args processing of backgammon and teachgammon, closes pr 5345 by
David Brownlee.
Diffstat (limited to 'backgammon/common_source')
-rw-r--r-- | backgammon/common_source/subs.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/backgammon/common_source/subs.c b/backgammon/common_source/subs.c index e1017713..95375f8c 100644 --- a/backgammon/common_source/subs.c +++ b/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 */ |