From: deraadt Date: Fri, 19 Dec 2014 07:42:49 +0000 (+0000) Subject: lonely bcopy called me by name X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=368c74dae8aefa3cdde9fb5aa08c44f4de1e9580;p=openbsd lonely bcopy called me by name --- 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);