HomeFreeBSD

Mute -Wstrlcpy-strlcat-size warning by using nitems with the size of the buffer

Description

Mute -Wstrlcpy-strlcat-size warning by using nitems with the size of the buffer

This is a no-op as the malloc above set the size of the buffer to the size used
below, but this keeps things consistent in case the malloc call changes somehow.

MFC after: 1 week
Reported by: clang
Sponsored by: EMC / Isilon Storage Division

Details

Provenance
ngieAuthored on
Parents
rS299762: Mark snmptoolctx unused in parse_authentication(..), parse_privacy(..),
Branches
Unknown
Tags
Unknown