From: deraadt Date: Thu, 18 Dec 2014 21:06:24 +0000 (+0000) Subject: obvious non-overlap bcopy -> memcpy X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=073b883893cf9a4b6798de3375bcb961e6b06a09;p=openbsd obvious non-overlap bcopy -> memcpy --- diff --git a/sys/dev/rd.c b/sys/dev/rd.c index b37decb3e6b..bd65bf9cc1c 100644 --- a/sys/dev/rd.c +++ b/sys/dev/rd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rd.c,v 1.8 2014/07/13 23:10:23 deraadt Exp $ */ +/* $OpenBSD: rd.c,v 1.9 2014/12/18 21:06:24 deraadt Exp $ */ /* * Copyright (c) 2011 Matthew Dempsky @@ -264,7 +264,7 @@ rdioctl(dev_t dev, u_long cmd, caddr_t data, int fflag, struct proc *p) case DIOCRLDINFO: lp = malloc(sizeof(*lp), M_TEMP, M_WAITOK); rdgetdisklabel(dev, sc, lp, 0); - bcopy(lp, sc->sc_dk.dk_label, sizeof(*lp)); + memcpy(sc->sc_dk.dk_label, lp, sizeof(*lp)); free(lp, M_TEMP, 0); goto done;