diff options
author | max <max@FreeBSD.org> | 1997-01-23 04:41:01 +0000 |
---|---|---|
committer | max <max@FreeBSD.org> | 1997-01-23 04:41:01 +0000 |
commit | 25753ac2ab3e7894cc141e0eff2bc589b0fe7d3c (patch) | |
tree | 157862d7307f3707b5be6b47d58201fe9c827744 /games | |
parent | 385fa8396b85809f341db7725835808a2b72f51b (diff) | |
download | FreeBSD-src-25753ac2ab3e7894cc141e0eff2bc589b0fe7d3c.zip FreeBSD-src-25753ac2ab3e7894cc141e0eff2bc589b0fe7d3c.tar.gz |
When calling recover() from getarg(), also check to see if the first
character of the argument being processed isn't '\0'.
This fixes problem with backgammon exiting abnormally when you answer 'y' to
the question it asks if you need instruction for the game.
2.2 cnadidate, maybe?
Diffstat (limited to 'games')
-rw-r--r-- | games/backgammon/common_source/subs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/games/backgammon/common_source/subs.c b/games/backgammon/common_source/subs.c index 827e3e0..5b07ad1 100644 --- a/games/backgammon/common_source/subs.c +++ b/games/backgammon/common_source/subs.c @@ -376,7 +376,7 @@ register char ***arg; } s++; } - if (s[0] != 0) + if (s[0] != 0 && s[0][0] != '\0') recover(s[0]); } |