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)
Fri, May 10, 3:54 PM
Unknown Object (File)
Thu, May 9, 10:48 AM
Unknown Object (File)
Fri, May 3, 8:17 AM
Unknown Object (File)
Tue, Apr 30, 3:36 AM
Unknown Object (File)
Tue, Apr 30, 3:36 AM
Unknown Object (File)
Tue, Apr 30, 3:35 AM
Unknown Object (File)
Mon, Apr 29, 7:42 PM
Unknown Object (File)
Sat, Apr 20, 12:00 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

Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 28646
Build 26673: arc lint + arc unit