Page MenuHomeFreeBSD

fstyp: fix Coverity issues in hammer support
ClosedPublic

Authored by vangyzen on Jan 13 2020, 9:21 PM.
Tags
None
Referenced Files
F108148339: D23159.diff
Tue, Jan 21, 9:44 PM
Unknown Object (File)
Fri, Jan 17, 3:32 AM
Unknown Object (File)
Fri, Jan 17, 3:32 AM
Unknown Object (File)
Mon, Jan 13, 10:36 PM
Unknown Object (File)
Thu, Jan 9, 12:54 PM
Unknown Object (File)
Thu, Jan 2, 8:45 AM
Unknown Object (File)
Dec 2 2024, 1:39 PM
Unknown Object (File)
Nov 17 2024, 6:14 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