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)
Tue, Jun 2, 9:25 PM
Unknown Object (File)
Fri, May 29, 9:24 PM
Unknown Object (File)
Wed, May 27, 5:13 PM
Unknown Object (File)
Tue, May 26, 8:41 PM
Unknown Object (File)
May 18 2026, 11:19 AM
Unknown Object (File)
May 4 2026, 4:07 PM
Unknown Object (File)
Apr 30 2026, 8:46 AM
Unknown Object (File)
Apr 30 2026, 4:43 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