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
Differential D23159
fstyp: fix Coverity issues in hammer support vangyzen on Jan 13 2020, 9:21 PM. Authored by Tags None Referenced Files
Details Use strlcpy to guarantee NUL termination. Due to this, there is CID: 1412242 best_i will always be >= 0, so remove code to test otherwise. CID: 1412244 Untested.
Diff Detail
Event Timeline |