diff options
author | 2001-06-03 23:10:50 +0000 | |
---|---|---|
committer | 2001-06-03 23:10:50 +0000 | |
commit | 7940740f5305b9505f05f6c7b9e110e89b231ac6 (patch) | |
tree | 2233216e0b1be120a990b97394a111fee95a4d93 | |
parent | remove comment on bim.. Missed in last commit. (diff) | |
download | wireguard-openbsd-7940740f5305b9505f05f6c7b9e110e89b231ac6.tar.xz wireguard-openbsd-7940740f5305b9505f05f6c7b9e110e89b231ac6.zip |
make '++' work.
-rw-r--r-- | games/boggle/boggle/bog.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/games/boggle/boggle/bog.c b/games/boggle/boggle/bog.c index 8cb9c327460..0d1500376ca 100644 --- a/games/boggle/boggle/bog.c +++ b/games/boggle/boggle/bog.c @@ -1,4 +1,4 @@ -/* $OpenBSD: bog.c,v 1.6 1999/07/31 18:13:30 pjanzen Exp $ */ +/* $OpenBSD: bog.c,v 1.7 2001/06/03 23:10:50 pjanzen Exp $ */ /* $NetBSD: bog.c,v 1.5 1995/04/24 12:22:32 cgd Exp $ */ /*- @@ -47,7 +47,7 @@ static char copyright[] = #if 0 static char sccsid[] = "@(#)bog.c 8.1 (Berkeley) 6/11/93"; #else -static char rcsid[] = "$OpenBSD: bog.c,v 1.6 1999/07/31 18:13:30 pjanzen Exp $"; +static char rcsid[] = "$OpenBSD: bog.c,v 1.7 2001/06/03 23:10:50 pjanzen Exp $"; #endif #endif /* not lint */ @@ -121,6 +121,7 @@ int batch; int debug; int minlength; int reuse; +int selfuse; int tlimit; int @@ -129,7 +130,7 @@ main(argc, argv) char *argv[]; { time_t seed; - int ch, done, i, selfuse, sflag; + int ch, done, i, sflag; char *bspec, *p; /* revoke */ @@ -340,7 +341,7 @@ playgame() showstr(buf, 1); continue; } - if (strlen(buf) < minlength) { + if (strlen(buf) < (size_t)minlength) { badword(); continue; } @@ -480,7 +481,7 @@ checkword(word, prev, path) * If necessary, check if the square has already * been used. */ - if (!reuse && (usedbits & used)) + if (!reuse && !selfuse && (usedbits & used)) continue; *path = lm[i]; usedbits |= used; |