summaryrefslogtreecommitdiffstats
path: root/libexec
diff options
context:
space:
mode:
authorache <ache@FreeBSD.org>1995-03-24 05:15:09 +0000
committerache <ache@FreeBSD.org>1995-03-24 05:15:09 +0000
commit2cbe4b6fcc1e24eb0e81719024a2416404e1f942 (patch)
tree1ac6792056453523df88a7a94556c3fe06a80428 /libexec
parent3397bb5f27b8722ddeecc311db793d1822b49672 (diff)
downloadFreeBSD-src-2cbe4b6fcc1e24eb0e81719024a2416404e1f942.zip
FreeBSD-src-2cbe4b6fcc1e24eb0e81719024a2416404e1f942.tar.gz
Fix truncating hostname using MAXHOSTNAMELEN
Submitted by: Jan Conard <charly@fachschaften.tu-muenchen.de>
Diffstat (limited to 'libexec')
-rw-r--r--libexec/getty/subr.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libexec/getty/subr.c b/libexec/getty/subr.c
index 571970e..607fd38 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 <sys/param.h>
#define USE_OLD_TTY
#include <sgtty.h>
#include <unistd.h>
@@ -303,7 +304,7 @@ adelay(ms, dp)
return (dp->bits);
}
-char editedhost[32];
+char editedhost[MAXHOSTNAMELEN];
edithost(pat)
register char *pat;
OpenPOWER on IntegriCloud