summaryrefslogtreecommitdiff
path: root/sbin
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1996-12-22 02:59:54 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1996-12-22 02:59:54 +0000
commit89eb7cbe0b8c6777a04791593b7b4589ea36938f (patch)
tree6b048b7d0a345d05a0447098cf57304cddd0aa85 /sbin
parente568909a2dfe2282aa7a04e4362269a6bbe1ea6f (diff)
MAXHOSTNAMELEN, not +1
Diffstat (limited to 'sbin')
-rw-r--r--sbin/shutdown/shutdown.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sbin/shutdown/shutdown.c b/sbin/shutdown/shutdown.c
index 35bc0fd197f..4c78e0c62a6 100644
--- a/sbin/shutdown/shutdown.c
+++ b/sbin/shutdown/shutdown.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: shutdown.c,v 1.5 1996/09/20 07:12:57 deraadt Exp $ */
+/* $OpenBSD: shutdown.c,v 1.6 1996/12/22 02:59:53 deraadt Exp $ */
/* $NetBSD: shutdown.c,v 1.9 1995/03/18 15:01:09 cgd Exp $ */
/*
@@ -44,7 +44,7 @@ static char copyright[] =
#if 0
static char sccsid[] = "@(#)shutdown.c 8.2 (Berkeley) 2/16/94";
#else
-static char rcsid[] = "$OpenBSD: shutdown.c,v 1.5 1996/09/20 07:12:57 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: shutdown.c,v 1.6 1996/12/22 02:59:53 deraadt Exp $";
#endif
#endif /* not lint */
@@ -279,7 +279,7 @@ timewarn(timeleft)
int timeleft;
{
static int first;
- static char hostname[MAXHOSTNAMELEN + 1];
+ static char hostname[MAXHOSTNAMELEN];
FILE *pf;
char wcmd[MAXPATHLEN + 4];
extern char **environ;