HomeFreeBSD

Slightly improve previous commit that silenced a Clang Scan warning.

Description

Slightly improve previous commit that silenced a Clang Scan warning.

The strdup() call does not take advantage of the known length of the
source string. Replace by malloc() and memcpy() utilizimng the pre-
calculated string length.

Submitted by: cperciva
Reported by: rgrimes
MFC after: 2 weeks

Details

Provenance
seAuthored on
Parents
rS343481: - In _iflib_fl_refill(), don't mark an RX buffer as available in the
Branches
Unknown
Tags
Unknown