From c568fce986f9b015af49a31adf70c169ca418a55 Mon Sep 17 00:00:00 2001 From: "Andrey A. Chernov" Date: Fri, 24 Mar 1995 05:15:09 +0000 Subject: [PATCH] Fix truncating hostname using MAXHOSTNAMELEN Submitted by: Jan Conard --- libexec/getty/subr.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libexec/getty/subr.c b/libexec/getty/subr.c index 571970e97808..607fd3836ac0 100644 --- a/libexec/getty/subr.c +++ b/libexec/getty/subr.c @@ -46,6 +46,7 @@ static char sccsid[] = "@(#)subr.c 5.10 (Berkeley) 2/26/91"; /* * Melbourne getty. */ +#include #define USE_OLD_TTY #include #include @@ -303,7 +304,7 @@ adelay(ms, dp) return (dp->bits); } -char editedhost[32]; +char editedhost[MAXHOSTNAMELEN]; edithost(pat) register char *pat;