HomeFreeBSD

fstyp hammer: use strlcpy

Description

fstyp hammer: use strlcpy

Use strlcpy to guarantee NUL termination. Due to this, there is
no need for strncmp; simply use strcmp.

Reported by: Coverity
CID: 1412242
MFC after: 2 weeks
Sponsored by: Dell EMC Isilon
Differential Revision: https://reviews.freebsd.org/D23159

Details

Provenance
vangyzenAuthored on
Differential Revision
D23159: fstyp: fix Coverity issues in hammer support
Parents
rS356707: Map ECKSUM and EFRAGS from ZFS onto real errnos.
Branches
Unknown
Tags
Unknown