From 1e4765ffa2cc484d6fa2c51e54ba927cbae67f13 Mon Sep 17 00:00:00 2001 From: deraadt <> Date: Fri, 16 Jan 2015 16:48:51 +0000 Subject: Move to the universe. review by millert, binary checking process with doug, concept with guenther --- src/lib/libc/net/ethers.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/lib/libc/net/ethers.c') diff --git a/src/lib/libc/net/ethers.c b/src/lib/libc/net/ethers.c index 07f1da3306..a89f0c217b 100644 --- a/src/lib/libc/net/ethers.c +++ b/src/lib/libc/net/ethers.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ethers.c,v 1.22 2014/09/15 06:15:48 guenther Exp $ */ +/* $OpenBSD: ethers.c,v 1.23 2015/01/16 16:48:51 deraadt Exp $ */ /* * Copyright (c) 1998 Todd C. Miller @@ -27,13 +27,13 @@ #include #include #include -#include #include #include #include #include #include #include +#include #ifdef YP #include #endif @@ -159,7 +159,7 @@ ether_hostton(const char *hostname, struct ether_addr *e) { FILE *f; char buf[BUFSIZ+1], *p; - char try[MAXHOSTNAMELEN]; + char try[HOST_NAME_MAX+1]; size_t len; #ifdef YP int hostlen = strlen(hostname); @@ -223,7 +223,7 @@ ether_line(const char *line, struct ether_addr *e, char *hostname) if (*p == '\0') goto bad; n = strcspn(p, " \t\n"); - if (n >= MAXHOSTNAMELEN) + if (n >= HOST_NAME_MAX+1) goto bad; strlcpy(hostname, p, n + 1); return (0); -- cgit v1.2.3-55-g6feb