From 52dc30e12094486bde4b1f8f9e3b470640dd860e Mon Sep 17 00:00:00 2001 From: deraadt Date: Fri, 16 Jan 2015 05:53:49 +0000 Subject: [PATCH] adjust to HOST_NAME_MAX+1 & LOGIN_NAME_MAX --- libexec/getty/main.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/libexec/getty/main.c b/libexec/getty/main.c index b0824f20245..4071b140169 100644 --- a/libexec/getty/main.c +++ b/libexec/getty/main.c @@ -1,4 +1,4 @@ -/* $OpenBSD: main.c,v 1.34 2014/11/19 13:35:37 krw Exp $ */ +/* $OpenBSD: main.c,v 1.35 2015/01/16 05:53:49 deraadt Exp $ */ /*- * Copyright (c) 1980, 1993 @@ -29,7 +29,6 @@ * SUCH DAMAGE. */ -#include #include #include #include @@ -45,6 +44,7 @@ #include #include #include +#include #include #include "gettytab.h" @@ -71,9 +71,9 @@ struct termios tmode, omode; int crmod, digit, lower, upper; -char hostname[MAXHOSTNAMELEN]; +char hostname[HOST_NAME_MAX+1]; struct utsname kerninfo; -char name[MAXLOGNAME]; +char name[LOGIN_NAME_MAX]; char dev[] = _PATH_DEV; char ttyn[32]; char *portselector(void); -- 2.20.1