Copy the entire stats structure. Let compiler decide how.

This commit is contained in:
Poul-Henning Kamp 2004-12-11 22:13:02 +00:00
parent 86e3437258
commit 1ab58cc2df

View File

@ -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);
}