diff options
author | Ted Unangst <tedu@cvs.openbsd.org> | 2013-06-09 13:15:27 +0000 |
---|---|---|
committer | Ted Unangst <tedu@cvs.openbsd.org> | 2013-06-09 13:15:27 +0000 |
commit | b7b82d7589e142aa40159ef8164032b3936c526e (patch) | |
tree | b8530876b62ae378cc818adaa35a20d2dba64bfc /sys | |
parent | ce2678e352e544d087751a0e576f2f8cd9fc08f0 (diff) |
arguments to bcopy/memmove are reversed. put on thinking cap, then commit.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/kern/vfs_getcwd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/vfs_getcwd.c b/sys/kern/vfs_getcwd.c index df0623dac8f..e99ede0e644 100644 --- a/sys/kern/vfs_getcwd.c +++ b/sys/kern/vfs_getcwd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: vfs_getcwd.c,v 1.19 2013/06/09 12:43:57 tedu Exp $ */ +/* $OpenBSD: vfs_getcwd.c,v 1.20 2013/06/09 13:15:26 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; } - memmove(dp->d_name, bp, dp->d_namlen); + memmove(bp, dp->d_name, dp->d_namlen); error = 0; *bpp = bp; |