=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/netstat/route.c,v retrieving revision 1.23 retrieving revision 1.24 diff -c -r1.23 -r1.24 *** src/usr.bin/netstat/route.c 1998/02/27 12:07:40 1.23 --- src/usr.bin/netstat/route.c 1998/05/18 19:03:29 1.24 *************** *** 1,4 **** ! /* $OpenBSD: route.c,v 1.23 1998/02/27 12:07:40 deraadt Exp $ */ /* $NetBSD: route.c,v 1.15 1996/05/07 02:55:06 thorpej Exp $ */ /* --- 1,4 ---- ! /* $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,44 **** #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 $"; #endif #endif /* not lint */ --- 38,44 ---- #if 0 static char sccsid[] = "from: @(#)route.c 8.3 (Berkeley) 3/9/94"; #else ! static char *rcsid = "$OpenBSD: route.c,v 1.24 1998/05/18 19:03:29 deraadt Exp $"; #endif #endif /* not lint */ *************** *** 552,565 **** in_addr_t in; { register char *cp; ! static char line[MAXHOSTNAMELEN + 1]; struct hostent *hp; ! static char domain[MAXHOSTNAMELEN + 1]; static int first = 1; if (first) { first = 0; ! if (gethostname(domain, MAXHOSTNAMELEN) == 0 && (cp = strchr(domain, '.'))) (void) strcpy(domain, cp + 1); else --- 552,565 ---- in_addr_t in; { register char *cp; ! static char line[MAXHOSTNAMELEN]; struct hostent *hp; ! static char domain[MAXHOSTNAMELEN]; static int first = 1; if (first) { first = 0; ! if (gethostname(domain, sizeof domain) == 0 && (cp = strchr(domain, '.'))) (void) strcpy(domain, cp + 1); else *************** *** 597,603 **** in_addr_t in, mask; { char *cp = 0; ! static char line[MAXHOSTNAMELEN + 1]; struct netent *np = 0; in_addr_t net, subnetshift; int mbits; --- 597,603 ---- in_addr_t in, mask; { char *cp = 0; ! static char line[MAXHOSTNAMELEN]; struct netent *np = 0; in_addr_t net, subnetshift; int mbits;