summaryrefslogtreecommitdiffstats
path: root/games/boggle
diff options
context:
space:
mode:
authorotto <otto@openbsd.org>2016-09-12 14:38:58 +0000
committerotto <otto@openbsd.org>2016-09-12 14:38:58 +0000
commit1456f860f6930ed0c721c3cd066a52880cb83cde (patch)
treeb1d4e120e848795213913acb0ad4a542c7ce12db /games/boggle
parentstrlen + emalloc + snprintf = asprintf (diff)
downloadwireguard-openbsd-1456f860f6930ed0c721c3cd066a52880cb83cde.tar.xz
wireguard-openbsd-1456f860f6930ed0c721c3cd066a52880cb83cde.zip
fix init, from randy hartman; ok tb@
Diffstat (limited to 'games/boggle')
-rw-r--r--games/boggle/boggle/bog.c5
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();