summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormickey <mickey@openbsd.org>1996-11-29 06:51:49 +0000
committermickey <mickey@openbsd.org>1996-11-29 06:51:49 +0000
commitaf6ae5e30b3a0a7280b22540dcf80af9d421f296 (patch)
treea8ae8952e84300c372d24138eea0939dcb05b28c
parentback out bitmask_snprintf() (diff)
downloadwireguard-openbsd-af6ae5e30b3a0a7280b22540dcf80af9d421f296.tar.xz
wireguard-openbsd-af6ae5e30b3a0a7280b22540dcf80af9d421f296.zip
note 1024 limit on text+data.
-rw-r--r--sys/ddb/db_hangman.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/sys/ddb/db_hangman.c b/sys/ddb/db_hangman.c
index d715a424c5c..ed1c9a18305 100644
--- a/sys/ddb/db_hangman.c
+++ b/sys/ddb/db_hangman.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: db_hangman.c,v 1.9 1996/11/28 19:01:49 niklas Exp $ */
+/* $OpenBSD: db_hangman.c,v 1.10 1996/11/29 06:51:49 mickey Exp $ */
/*
* Copyright (c) 1996 Theo de Raadt, Michael Shalayeff
@@ -42,6 +42,14 @@
#define TOLOWER(c) (('A'<=(c)&&(c)<='Z')?(c)-'A'+'a':(c))
#define ISALPHA(c) (('a'<=(c)&&(c)<='z')||('A'<=(c)&&(c)<='Z'))
+/*
+ * if [ `size db_hangman.o | awk 'BEGIN {getline} {print $$1+$$2}'` -gt 1024 ];
+ * then
+ * echo 'hangman is too big!!!'
+ * fi
+ *
+ */
+
static __inline size_t db_random __P((size_t));
static __inline char *db_randomsym __P((size_t *));
void db_hang __P((int, char *, char *));