diff options
author | 2000-02-21 02:03:18 +0000 | |
---|---|---|
committer | 2000-02-21 02:03:18 +0000 | |
commit | 7ac95dd4a27935bc13248d0d555651abb72c856a (patch) | |
tree | 1b70607fc6f951a14ca7e39c0392834ffae708b9 | |
parent | setlocale and get rid of unneeded exit() call. millert@ ok (diff) | |
download | wireguard-openbsd-7ac95dd4a27935bc13248d0d555651abb72c856a.tar.xz wireguard-openbsd-7ac95dd4a27935bc13248d0d555651abb72c856a.zip |
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; |