diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2014-12-18 21:06:25 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2014-12-18 21:06:25 +0000 |
commit | 79b6a29e3e3c72456d1638234d0675948146a13d (patch) | |
tree | 4d0c2db5b09d371661f45fba368dc8b5a4191647 /sys/dev/rd.c | |
parent | e34e6324d6b7fe689b154f62d213f4a972506a36 (diff) |
obvious non-overlap bcopy -> memcpy
Diffstat (limited to 'sys/dev/rd.c')
-rw-r--r-- | sys/dev/rd.c | 4 |
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; |