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, Dec 29, 9:57 AM
Unknown Object (File)
Mon, Dec 29, 7:02 AM
Unknown Object (File)
Sun, Dec 14, 2:50 PM
Unknown Object (File)
Dec 10 2025, 9:30 PM
Unknown Object (File)
Nov 25 2025, 11:37 PM
Unknown Object (File)
Nov 22 2025, 3:29 AM
Unknown Object (File)
Nov 21 2025, 2:25 AM
Unknown Object (File)
Nov 20 2025, 8:36 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