diff options
author | Jun-ichiro itojun Hagino <itojun@cvs.openbsd.org> | 2000-02-21 02:03:19 +0000 |
---|---|---|
committer | Jun-ichiro itojun Hagino <itojun@cvs.openbsd.org> | 2000-02-21 02:03:19 +0000 |
commit | eac8bd87e3ab37810cb50d76288596eda797d12a (patch) | |
tree | f2c502ef29878187cdffd93d5e9cf0765ae9acbf | |
parent | 6b5c4a38b6b71e5a3499877f195804ebb112edac (diff) |
prevent align fault on alpha.
-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; |