HomeFreeBSD

dhclient: Fix some trivial buffer overruns

Description

dhclient: Fix some trivial buffer overruns

There was some confusion about how to limit a hardware address to at most 16
bytes. In some cases it would overrun a byte off the end of the array.
Correct the types and rectify the overrun.

Reported by: Coverity
CIDs: 1008682, 1305550
Sponsored by: EMC / Isilon Storage Division

Details

Provenance
cemAuthored on
Parents
rS299511: print_positional_test: Fix misuse of wchar APIs
Branches
Unknown
Tags
Unknown