diff options
author | Otto Moerbeek <otto@cvs.openbsd.org> | 2016-09-12 14:38:59 +0000 |
---|---|---|
committer | Otto Moerbeek <otto@cvs.openbsd.org> | 2016-09-12 14:38:59 +0000 |
commit | bce02852ab0b71a814c6f7c25415d201d3019cc5 (patch) | |
tree | fe4edb3143e7627da05baf695e966eb7efca1b46 /games/boggle | |
parent | c08e286fc4f5fa7cf9fcc1b7f52230ffa4f98eb9 (diff) |
fix init, from randy hartman; ok tb@
Diffstat (limited to 'games/boggle')
-rw-r--r-- | games/boggle/boggle/bog.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/games/boggle/boggle/bog.c b/games/boggle/boggle/bog.c index c603fc64673..8384db2baac 100644 --- a/games/boggle/boggle/bog.c +++ b/games/boggle/boggle/bog.c @@ -1,4 +1,4 @@ -/* $OpenBSD: bog.c,v 1.31 2016/08/27 02:00:10 guenther Exp $ */ +/* $OpenBSD: bog.c,v 1.32 2016/09/12 14:38:58 otto Exp $ */ /* $NetBSD: bog.c,v 1.5 1995/04/24 12:22:32 cgd Exp $ */ /*- @@ -127,6 +127,8 @@ main(int argc, char *argv[]) argc -= optind; argv += optind; + ncubes = grid * grid; + /* process final arguments */ if (argc > 0) { if (strcmp(argv[0], "+") == 0) @@ -674,7 +676,6 @@ init(void) { int i; - ncubes = grid * grid; if (minlength == -1) minlength = grid - 1; init_adjacencies(); |