summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoritojun <itojun@openbsd.org>2000-02-21 02:03:18 +0000
committeritojun <itojun@openbsd.org>2000-02-21 02:03:18 +0000
commit7ac95dd4a27935bc13248d0d555651abb72c856a (patch)
tree1b70607fc6f951a14ca7e39c0392834ffae708b9
parentsetlocale and get rid of unneeded exit() call. millert@ ok (diff)
downloadwireguard-openbsd-7ac95dd4a27935bc13248d0d555651abb72c856a.tar.xz
wireguard-openbsd-7ac95dd4a27935bc13248d0d555651abb72c856a.zip
prevent align fault on alpha.
-rw-r--r--usr.sbin/amd/amd/wire.c4
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;