diff options
author | Ted Unangst <tedu@cvs.openbsd.org> | 2014-12-10 02:44:48 +0000 |
---|---|---|
committer | Ted Unangst <tedu@cvs.openbsd.org> | 2014-12-10 02:44:48 +0000 |
commit | d6bc48fe15da4eeeae3bd8f418c3ddf427a48141 (patch) | |
tree | dddba1757c7433e66458a1f753f070379102c6a0 /sys/kern/exec_subr.c | |
parent | 6c884b1aea9f49bb410c6f668305ba22d26d27de (diff) |
convert bcopy to memcpy. ok millert
Diffstat (limited to 'sys/kern/exec_subr.c')
-rw-r--r-- | sys/kern/exec_subr.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/exec_subr.c b/sys/kern/exec_subr.c index a50c94c4e8f..0a9621b7a9e 100644 --- a/sys/kern/exec_subr.c +++ b/sys/kern/exec_subr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: exec_subr.c,v 1.42 2014/11/18 02:37:31 tedu Exp $ */ +/* $OpenBSD: exec_subr.c,v 1.43 2014/12/10 02:44:46 tedu Exp $ */ /* $NetBSD: exec_subr.c,v 1.9 1994/12/04 03:10:42 mycroft Exp $ */ /* @@ -91,7 +91,7 @@ vmcmdset_extend(struct exec_vmcmd_set *evsp) /* reallocate the command set */ nvcp = mallocarray(evsp->evs_cnt, sizeof(*nvcp), M_EXEC, M_WAITOK); - bcopy(evsp->evs_cmds, nvcp, (ocnt * sizeof(*nvcp))); + memcpy(nvcp, evsp->evs_cmds, ocnt * sizeof(*nvcp)); if (evsp->evs_cmds != evsp->evs_start) free(evsp->evs_cmds, M_EXEC, ocnt * sizeof(*nvcp)); evsp->evs_cmds = nvcp; |