summaryrefslogtreecommitdiff
path: root/libexec
diff options
context:
space:
mode:
authorthorpej <thorpej@NetBSD.org>1996-09-27 02:15:35 +0000
committerthorpej <thorpej@NetBSD.org>1996-09-27 02:15:35 +0000
commit4d99eaeb74eb3e6c30b6392eda4d2106c08fc62e (patch)
treedd699fa2c42f699195d3133d4cce6c77ce6bc614 /libexec
parent1d4301453f3ce785c0a9caf45ab107e7b052507b (diff)
Don't truncate long hostnames.
From SAITOH Masanobu <msaitoh@spa.is.uec.ac.jp>, PR #2676.
Diffstat (limited to 'libexec')
-rw-r--r--libexec/getty/subr.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/libexec/getty/subr.c b/libexec/getty/subr.c
index 68b00827fd1..def5b4d14b7 100644
--- a/libexec/getty/subr.c
+++ b/libexec/getty/subr.c
@@ -1,4 +1,4 @@
-/* $NetBSD: subr.c,v 1.19 1996/07/31 20:40:36 thorpej Exp $ */
+/* $NetBSD: subr.c,v 1.20 1996/09/27 02:15:35 thorpej Exp $ */
/*
* Copyright (c) 1983, 1993
@@ -37,7 +37,7 @@
#if 0
static char sccsid[] = "from: @(#)subr.c 8.1 (Berkeley) 6/4/93";
#else
-static char rcsid[] = "$NetBSD: subr.c,v 1.19 1996/07/31 20:40:36 thorpej Exp $";
+static char rcsid[] = "$NetBSD: subr.c,v 1.20 1996/09/27 02:15:35 thorpej Exp $";
#endif
#endif /* not lint */
@@ -45,6 +45,7 @@ static char rcsid[] = "$NetBSD: subr.c,v 1.19 1996/07/31 20:40:36 thorpej Exp $"
* Melbourne getty.
*/
#define COMPAT_43
+#include <sys/param.h>
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
@@ -557,7 +558,7 @@ adelay(ms, dp)
}
#endif
-char editedhost[32];
+char editedhost[MAXHOSTNAMELEN];
void
edithost(pat)