From c76c7a1e76aa07245fba38d91779b4488ff23932 Mon Sep 17 00:00:00 2001 From: frueauf Date: Tue, 15 Sep 1998 13:43:34 +0000 Subject: Fix args processing of backgammon and teachgammon, closes pr 5345 by David Brownlee. --- backgammon/common_source/subs.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'backgammon/common_source') 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 */ -- cgit v1.2.3