diff options
Diffstat (limited to 'usr.bin/netstat/show.c')
-rw-r--r-- | usr.bin/netstat/show.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.bin/netstat/show.c b/usr.bin/netstat/show.c index e27e30198e1..8099bfcb182 100644 --- a/usr.bin/netstat/show.c +++ b/usr.bin/netstat/show.c @@ -1,4 +1,4 @@ -/* $OpenBSD: show.c,v 1.43 2014/10/23 16:45:57 schwarze Exp $ */ +/* $OpenBSD: show.c,v 1.44 2015/01/16 06:40:10 deraadt Exp $ */ /* $NetBSD: show.c,v 1.1 1996/11/15 18:01:41 gwr Exp $ */ /* @@ -30,7 +30,6 @@ * SUCH DAMAGE. */ -#include <sys/param.h> #include <sys/socket.h> #include <sys/sysctl.h> @@ -53,6 +52,7 @@ #include <stdlib.h> #include <string.h> #include <unistd.h> +#include <limits.h> #include "netstat.h" @@ -563,8 +563,8 @@ p_sockaddr(struct sockaddr *sa, struct sockaddr *mask, int flags, int width) } } -static char line[MAXHOSTNAMELEN]; -static char domain[MAXHOSTNAMELEN]; +static char line[HOST_NAME_MAX+1]; +static char domain[HOST_NAME_MAX+1]; void p_sockaddr_mpls(struct sockaddr *in, struct sockaddr *out, int flags, int width) |