diff options
-rw-r--r-- | libexec/getty/main.c | 8 |
1 files 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 <sys/param.h> #include <sys/stat.h> #include <termios.h> #include <sys/ioctl.h> @@ -45,6 +44,7 @@ #include <syslog.h> #include <stdio.h> #include <unistd.h> +#include <limits.h> #include <util.h> #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); |