HomeFreeBSD

Use strlcpy() instead of strncpy() to ensure that ret->name is

Description

Use strlcpy() instead of strncpy() to ensure that ret->name is
NUL terminated. The source and destination buffers are the same
size and the source *should* be NUL terminated, but be paranoid.

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

Details

Provenance
truckmanAuthored on
Parents
rS299579: Use strlcpy() instead of strncpy() to ensure that qup->fsname is NUL
Branches
Unknown
Tags
Unknown