artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
607c4de
)
lonely bcopy called me by name
author
deraadt
<deraadt@openbsd.org>
Fri, 19 Dec 2014 07:42:49 +0000
(07:42 +0000)
committer
deraadt
<deraadt@openbsd.org>
Fri, 19 Dec 2014 07:42:49 +0000
(07:42 +0000)
sys/dev/acpi/atk0110.c
patch
|
blob
|
history
diff --git
a/sys/dev/acpi/atk0110.c
b/sys/dev/acpi/atk0110.c
index
f82481d
..
35415e2
100644
(file)
--- a/
sys/dev/acpi/atk0110.c
+++ b/
sys/dev/acpi/atk0110.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: atk0110.c,v 1.1
1 2014/10/16 03:42:03
deraadt Exp $ */
+/* $OpenBSD: atk0110.c,v 1.1
2 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);