Page MenuHomeFreeBSD

fstyp: fix Coverity issues in hammer support
ClosedPublic

Authored by vangyzen on Jan 13 2020, 9:21 PM.
Tags
None
Referenced Files
F170009195: D23159.diff
Thu, Sep 3, 5:59 AM
Unknown Object (File)
Wed, Sep 2, 10:44 AM
Unknown Object (File)
Tue, Sep 1, 11:13 PM
Unknown Object (File)
Fri, Aug 21, 2:08 PM
Unknown Object (File)
Thu, Aug 20, 5:47 AM
Unknown Object (File)
Thu, Aug 13, 8:53 PM
Unknown Object (File)
Wed, Aug 12, 4:42 PM
Unknown Object (File)
Wed, Aug 12, 4:05 PM
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