diff options
author | Dale Rahn <drahn@cvs.openbsd.org> | 2002-09-06 01:20:29 +0000 |
---|---|---|
committer | Dale Rahn <drahn@cvs.openbsd.org> | 2002-09-06 01:20:29 +0000 |
commit | be2db198361a4a443a1ba9c0efca4d965fab86e9 (patch) | |
tree | 97ccdc4792686bd7c78d4868df049ed6f258c956 /sys/arch/macppc/dev | |
parent | bb3697fb9cc85ac07243a0869652fed5fad7e422 (diff) |
sizeof(pointer) is not what should be used here, should be sizeof(*pointer)
pointed out by aaron.
Diffstat (limited to 'sys/arch/macppc/dev')
-rw-r--r-- | sys/arch/macppc/dev/if_bm.c | 4 |
1 files 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); |