Copy the entire stats structure. Let compiler decide how.
This commit is contained in:
parent
86e3437258
commit
1ab58cc2df
@ -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 New Issue
Block a user