$NetBSD: patch-am,v 1.2 2009/01/09 20:43:53 shattered Exp $ --- src/loaders/mdl_load.c.orig 2007-11-12 22:12:40.000000000 +0000 +++ src/loaders/mdl_load.c @@ -181,8 +181,9 @@ static unsigned int get_bits(char i, uin unsigned int x; if (i == 0) { - b = *((uint32 *)(*buf)); - *buf += 4; *len -= 4; + (void)memcpy(&b, *buf, sizeof(b)); + *buf += sizeof(b); + *len -= sizeof(b); n = 32; return 0; }