summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2014-12-19 07:42:50 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2014-12-19 07:42:50 +0000
commit17eb5caedbd6acd98f683f70e942df313033697a (patch)
tree6798ebd5eb863018b825ad647c236600114f42ae
parent16fdf03f3b0cc26482f7f8172083c20f0ec2ff2c (diff)
lonely bcopy called me by name
-rw-r--r--sys/dev/acpi/atk0110.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/acpi/atk0110.c b/sys/dev/acpi/atk0110.c
index f82481d337d..35415e20d4e 100644
--- a/sys/dev/acpi/atk0110.c
+++ b/sys/dev/acpi/atk0110.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: atk0110.c,v 1.11 2014/10/16 03:42:03 deraadt Exp $ */
+/* $OpenBSD: atk0110.c,v 1.12 2014/12/19 07:42:49 deraadt Exp $ */
/*
* Copyright (c) 2009 Constantine A. Murenin <cnst+openbsd@bugmail.mojo.ru>
@@ -467,7 +467,7 @@ aibs_getvalue(struct aibs_softc *sc, int64_t i, int64_t *v)
aml_freevalue(&res);
return (-1);
}
- bcopy(res.v_buffer, &ret, sizeof(ret));
+ memcpy(&ret, res.v_buffer, sizeof(ret));
if (ret.flags == 0) {
dprintf("%s: %s: %lld: bad flags in result\n",
DEVNAME(sc), n->name, i);