summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2007-11-21 22:05:19 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2007-11-21 22:05:19 +0000
commit5d094e19f0f07ffec197ef0d6d399b6ff8540066 (patch)
tree1ce9c4f20d784d5f8b413ea81da0cbb1de64f0ff
parentfb5a527f861daa7da436ea2fc7a516edc08cdaa0 (diff)
Use bcopy instead of assignment to avoid a possible misaligned access.
-rw-r--r--sys/arch/aviion/aviion/autoconf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/aviion/aviion/autoconf.c b/sys/arch/aviion/aviion/autoconf.c
index 626722f8314..b986da959a1 100644
--- a/sys/arch/aviion/aviion/autoconf.c
+++ b/sys/arch/aviion/aviion/autoconf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: autoconf.c,v 1.5 2007/06/15 01:19:06 deraadt Exp $ */
+/* $OpenBSD: autoconf.c,v 1.6 2007/11/21 22:05:18 miod Exp $ */
/*
* Copyright (c) 1998 Steve Murphree, Jr.
* Copyright (c) 1996 Nivas Madhur
@@ -164,7 +164,7 @@ cmdline_parse(void)
* commandline, so we can simply use its numerical value, as a
* word, to tell device types apart.
*/
- bootdevtype = *(int *)bootargs;
+ bcopy(bootargs, &bootdevtype, sizeof(int));
}
void