summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTed Unangst <tedu@cvs.openbsd.org>2013-06-09 12:43:58 +0000
committerTed Unangst <tedu@cvs.openbsd.org>2013-06-09 12:43:58 +0000
commit969989de70a15d6010cb229b6f2dabba8c34ed20 (patch)
tree29f356aa05ff8131ec3dff90c313dabbf2d588d6
parentf21aa9ba5efda521cea120c537b5de19fa7dbdb1 (diff)
change a bcopy to memmove (mainly to catch platforms that don't offer it)
-rw-r--r--sys/kern/vfs_getcwd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/vfs_getcwd.c b/sys/kern/vfs_getcwd.c
index 416a52044a5..df0623dac8f 100644
--- a/sys/kern/vfs_getcwd.c
+++ b/sys/kern/vfs_getcwd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: vfs_getcwd.c,v 1.18 2011/12/09 16:14:54 nicm Exp $ */
+/* $OpenBSD: vfs_getcwd.c,v 1.19 2013/06/09 12:43:57 tedu Exp $ */
/* $NetBSD: vfs_getcwd.c,v 1.3.2.3 1999/07/11 10:24:09 sommerfeld Exp $ */
/*
@@ -174,7 +174,7 @@ vfs_getcwd_scandir(struct vnode **lvpp, struct vnode **uvpp, char **bpp,
goto out;
}
- bcopy(dp->d_name, bp, dp->d_namlen);
+ memmove(dp->d_name, bp, dp->d_namlen);
error = 0;
*bpp = bp;