From 368c74dae8aefa3cdde9fb5aa08c44f4de1e9580 Mon Sep 17 00:00:00 2001 From: deraadt Date: Fri, 19 Dec 2014 07:42:49 +0000 Subject: [PATCH] lonely bcopy called me by name --- sys/dev/acpi/atk0110.c | 4 ++-- 1 file 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 @@ -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); -- 2.20.1