mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-18 22:33:39 +00:00
Copy the entire stats structure. Let compiler decide how.
This commit is contained in:
parent
86e3437258
commit
1ab58cc2df
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=138696
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue