From adeb4584093c712f6aaa94ff2a634a06cbea94c7 Mon Sep 17 00:00:00 2001 From: Anil Madhavapeddy Date: Sun, 15 Feb 2004 02:52:42 +0000 Subject: 18 -> ETHER_ADDR_LEN*3 in ether_sprintf() for clarity itojun@ ok --- sys/net/if_ethersubr.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys') diff --git a/sys/net/if_ethersubr.c b/sys/net/if_ethersubr.c index 04af650715c..f5958851582 100644 --- a/sys/net/if_ethersubr.c +++ b/sys/net/if_ethersubr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_ethersubr.c,v 1.74 2004/01/09 10:44:32 markus Exp $ */ +/* $OpenBSD: if_ethersubr.c,v 1.75 2004/02/15 02:52:41 avsm Exp $ */ /* $NetBSD: if_ethersubr.c,v 1.19 1996/05/07 02:40:30 thorpej Exp $ */ /* @@ -931,7 +931,7 @@ ether_sprintf(ap) u_char *ap; { int i; - static char etherbuf[18]; + static char etherbuf[ETHER_ADDR_LEN * 3]; char *cp = etherbuf; for (i = 0; i < ETHER_ADDR_LEN; i++) { -- cgit v1.2.3