From dcaf810e82fb4d78b74705448a43813d422bbf64 Mon Sep 17 00:00:00 2001 From: phk Date: Sat, 11 Dec 2004 22:13:02 +0000 Subject: Copy the entire stats structure. Let compiler decide how. --- sys/kern/vfs_mount.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sys/kern/vfs_mount.c') diff --git a/sys/kern/vfs_mount.c b/sys/kern/vfs_mount.c index 4d25f45..acb44c8 100644 --- a/sys/kern/vfs_mount.c +++ b/sys/kern/vfs_mount.c @@ -1585,7 +1585,7 @@ __vfs_statfs(struct mount *mp, struct statfs *sbp, struct thread *td) error = mp->mnt_op->vfs_statfs(mp, &mp->mnt_stat, td); if (sbp != &mp->mnt_stat) - memcpy(sbp, &mp->mnt_stat, sizeof sbp); + *sbp = mp->mnt_stat; return (error); } -- cgit v1.1