summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>2014-12-18 21:06:24 +0000
committerderaadt <deraadt@openbsd.org>2014-12-18 21:06:24 +0000
commit073b883893cf9a4b6798de3375bcb961e6b06a09 (patch)
tree45968f0add8f393c4786e0d974cf5d46220c8ecc
parentconvert one hot looking bcopy to memcpy (diff)
downloadwireguard-openbsd-073b883893cf9a4b6798de3375bcb961e6b06a09.tar.xz
wireguard-openbsd-073b883893cf9a4b6798de3375bcb961e6b06a09.zip
obvious non-overlap bcopy -> memcpy
-rw-r--r--sys/dev/rd.c4
1 files changed, 2 insertions, 2 deletions
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 <matthew@dempsky.org>
@@ -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;