HomeFreeBSD

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

Description

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

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

Details

Provenance
truckmanAuthored on
Parents
rS299580: Use strlcpy() instead of strncpy() to ensure that ret->name is
Branches
Unknown
Tags
Unknown