From: deraadt Date: Fri, 16 Jan 2015 05:53:49 +0000 (+0000) Subject: adjust to HOST_NAME_MAX+1 & LOGIN_NAME_MAX X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=52dc30e12094486bde4b1f8f9e3b470640dd860e;p=openbsd adjust to HOST_NAME_MAX+1 & LOGIN_NAME_MAX --- 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);