From be2db198361a4a443a1ba9c0efca4d965fab86e9 Mon Sep 17 00:00:00 2001 From: Dale Rahn Date: Fri, 6 Sep 2002 01:20:29 +0000 Subject: sizeof(pointer) is not what should be used here, should be sizeof(*pointer) pointed out by aaron. --- sys/arch/macppc/dev/if_bm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/arch/macppc/dev/if_bm.c b/sys/arch/macppc/dev/if_bm.c index 27c729a99ee..224ccba2810 100644 --- a/sys/arch/macppc/dev/if_bm.c +++ b/sys/arch/macppc/dev/if_bm.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_bm.c,v 1.10 2002/08/22 04:41:57 drahn Exp $ */ +/* $OpenBSD: if_bm.c,v 1.11 2002/09/06 01:20:28 drahn Exp $ */ /* $NetBSD: if_bm.c,v 1.1 1999/01/01 01:27:52 tsubai Exp $ */ /*- @@ -464,7 +464,7 @@ bmac_init(sc) data = sc->sc_txbuf; eh = (struct ether_header *)data; - bzero(data, sizeof(eh) + ETHERMIN); + bzero(data, sizeof(*eh) + ETHERMIN); bcopy(sc->sc_enaddr, eh->ether_dhost, ETHER_ADDR_LEN); bcopy(sc->sc_enaddr, eh->ether_shost, ETHER_ADDR_LEN); bmac_transmit_packet(sc, sc->sc_txbuf_pa, sizeof(eh) + ETHERMIN); -- cgit v1.2.3