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/vfs_cache.c | |
parent | 6c884b1aea9f49bb410c6f668305ba22d26d27de (diff) |
convert bcopy to memcpy. ok millert
Diffstat (limited to 'sys/kern/vfs_cache.c')
-rw-r--r-- | sys/kern/vfs_cache.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/vfs_cache.c b/sys/kern/vfs_cache.c index a1775c27fd3..c1de88f9edf 100644 --- a/sys/kern/vfs_cache.c +++ b/sys/kern/vfs_cache.c @@ -1,4 +1,4 @@ -/* $OpenBSD: vfs_cache.c,v 1.37 2014/09/13 16:06:37 doug Exp $ */ +/* $OpenBSD: vfs_cache.c,v 1.38 2014/12/10 02:44:47 tedu Exp $ */ /* $NetBSD: vfs_cache.c,v 1.13 1996/02/04 02:18:09 christos Exp $ */ /* @@ -367,7 +367,7 @@ cache_enter(struct vnode *dvp, struct vnode *vp, struct componentname *cnp) ncp->nc_dvp = dvp; ncp->nc_dvpid = dvp->v_id; ncp->nc_nlen = cnp->cn_namelen; - bcopy(cnp->cn_nameptr, ncp->nc_name, (unsigned)ncp->nc_nlen); + memcpy(ncp->nc_name, cnp->cn_nameptr, ncp->nc_nlen); if (RB_EMPTY(&dvp->v_nc_tree)) { vhold(dvp); } |