diff options
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/amd/amd/wire.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/amd/amd/wire.c b/usr.sbin/amd/amd/wire.c index 231dc2c672b..95c22e158fe 100644 --- a/usr.sbin/amd/amd/wire.c +++ b/usr.sbin/amd/amd/wire.c @@ -36,7 +36,7 @@ * SUCH DAMAGE. * * from: @(#)wire.c 8.1 (Berkeley) 6/6/93 - * $Id: wire.c,v 1.4 1998/03/20 03:04:00 angelos Exp $ + * $Id: wire.c,v 1.5 2000/02/21 02:03:18 itojun Exp $ */ /* @@ -136,7 +136,7 @@ char *getwire() */ for (cp = buf; cp < cplim; cp += size(ifr)) { addrlist *al; - ifr = (struct ifreq *) cp; + memcpy(&ifr, cp, sizeof(ifr)); if (ifr->ifr_addr.sa_family != AF_INET) continue; |