summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--usr.bin/netstat/route.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/usr.bin/netstat/route.c b/usr.bin/netstat/route.c
index 3d2132cd69f..950e9d4c111 100644
--- a/usr.bin/netstat/route.c
+++ b/usr.bin/netstat/route.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: route.c,v 1.23 1998/02/27 12:07:40 deraadt Exp $ */
+/* $OpenBSD: route.c,v 1.24 1998/05/18 19:03:29 deraadt Exp $ */
/* $NetBSD: route.c,v 1.15 1996/05/07 02:55:06 thorpej Exp $ */
/*
@@ -38,7 +38,7 @@
#if 0
static char sccsid[] = "from: @(#)route.c 8.3 (Berkeley) 3/9/94";
#else
-static char *rcsid = "$OpenBSD: route.c,v 1.23 1998/02/27 12:07:40 deraadt Exp $";
+static char *rcsid = "$OpenBSD: route.c,v 1.24 1998/05/18 19:03:29 deraadt Exp $";
#endif
#endif /* not lint */
@@ -552,14 +552,14 @@ routename(in)
in_addr_t in;
{
register char *cp;
- static char line[MAXHOSTNAMELEN + 1];
+ static char line[MAXHOSTNAMELEN];
struct hostent *hp;
- static char domain[MAXHOSTNAMELEN + 1];
+ static char domain[MAXHOSTNAMELEN];
static int first = 1;
if (first) {
first = 0;
- if (gethostname(domain, MAXHOSTNAMELEN) == 0 &&
+ if (gethostname(domain, sizeof domain) == 0 &&
(cp = strchr(domain, '.')))
(void) strcpy(domain, cp + 1);
else
@@ -597,7 +597,7 @@ netname(in, mask)
in_addr_t in, mask;
{
char *cp = 0;
- static char line[MAXHOSTNAMELEN + 1];
+ static char line[MAXHOSTNAMELEN];
struct netent *np = 0;
in_addr_t net, subnetshift;
int mbits;