HomeFreeBSD

Use strlcpy() instead of strncpy() to ensure that qup->fsname is NUL

Description

Use strlcpy() instead of strncpy() to ensure that qup->fsname is NUL
terminated. Don't bother checking for truncation since the subsequent
quota_read() should detect that and fail.

Reported by: Coverity
CID: 1009980
MFC after: 1 week

Details

Provenance
truckmanAuthored on
Parents
rS299578: If fchdir() fails, call err() instead of warn().
Branches
Unknown
Tags
Unknown