Page MenuHomeFreeBSD

fstyp: fix Coverity issues in hammer support
ClosedPublic

Authored by vangyzen on Jan 13 2020, 9:21 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Oct 6, 5:20 AM
Unknown Object (File)
Tue, Sep 30, 8:42 AM
Unknown Object (File)
Mon, Sep 29, 10:48 PM
Unknown Object (File)
Wed, Sep 17, 8:56 AM
Unknown Object (File)
Sep 5 2025, 5:03 PM
Unknown Object (File)
Sep 5 2025, 7:42 AM
Unknown Object (File)
Aug 8 2025, 4:12 AM
Unknown Object (File)
Aug 3 2025, 3:22 AM
Subscribers

Details

Summary

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

CID: 1412242

best_i will always be >= 0, so remove code to test otherwise.

CID: 1412244

Test Plan

Untested.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable