MFC r299867
authortruckman <truckman@FreeBSD.org>
Fri, 20 May 2016 07:00:11 +0000 (07:00 +0000)
committertruckman <truckman@FreeBSD.org>
Fri, 20 May 2016 07:00:11 +0000 (07:00 +0000)
commit4597c47c8b031e66fdecf9be5ab02e94150345e6
tree29c42c1f6ecd086d4da12ef4266b3f0cb38a5779
parentda24c7987e35b6208d9d89babc94b8fcd8345813
MFC r299867

Use strlcpy() instead of strncpy() when copying ifname to ensure
that it is NUL terminated.  Additional NUL padding is not required
for short names.

Reported by: Coverity
CID: 974860, 1009972, 1009973
usr.sbin/rtadvd/config.c
usr.sbin/rtadvd/if.c