Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.sbin/amd/libamu prevent align fault on alpha (SIOCGIFCONF).
details: https://anonhg.NetBSD.org/src/rev/3a8b6f92b9f6
branches: trunk
changeset: 482750:3a8b6f92b9f6
user: itojun <itojun%NetBSD.org@localhost>
date: Mon Feb 21 02:04:12 2000 +0000
description:
prevent align fault on alpha (SIOCGIFCONF).
diffstat:
usr.sbin/amd/libamu/wire.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (18 lines):
diff -r d5c1ac0463b9 -r 3a8b6f92b9f6 usr.sbin/amd/libamu/wire.c
--- a/usr.sbin/amd/libamu/wire.c Mon Feb 21 02:01:24 2000 +0000
+++ b/usr.sbin/amd/libamu/wire.c Mon Feb 21 02:04:12 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: wire.c,v 1.1.1.5 1999/09/04 22:24:57 christos Exp $ */
+/* $NetBSD: wire.c,v 1.2 2000/02/21 02:04:12 itojun Exp $ */
/*
* Copyright (c) 1997-1999 Erez Zadok
@@ -423,7 +423,7 @@
* Scan the list looking for a suitable interface
*/
for (cp = buf; cp < cplim; cp += SIZE(ifr)) {
- ifr = (struct ifreq *) cp;
+ memcpy(&ifr, cp, sizeof(ifr));
if (ifr->ifr_addr.sa_family != AF_INET)
continue;
Home |
Main Index |
Thread Index |
Old Index