Mute -Wstrlcpy-strlcat-size warning by using nitems with the size of the buffer
authorngie <ngie@FreeBSD.org>
Sat, 14 May 2016 20:58:34 +0000 (20:58 +0000)
committerngie <ngie@FreeBSD.org>
Sat, 14 May 2016 20:58:34 +0000 (20:58 +0000)
commit7cc1c163268294eb7fcad6fc984ca43f3f9a0206
treeee35008e4f24e5b67d46d2489a30efe429f26712
parent22b898e4cfc7d39ffaad5c5fbda6578932fc3c53
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
usr.sbin/bsnmpd/tools/libbsnmptools/bsnmpimport.c