]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
MFC r299869
authortruckman <truckman@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Fri, 20 May 2016 07:11:04 +0000 (07:11 +0000)
committertruckman <truckman@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Fri, 20 May 2016 07:11:04 +0000 (07:11 +0000)
commitc31bd1da4c60daeb9fd30b1c951c251920147dc5
treeee65bacc742a98c850a0d945a40b538eeaf41c07
parent7e9ac8d46b7e42653ec9ebcb32ae230d3ca8a6eb
MFC r299869

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: 1009974

git-svn-id: svn://svn.freebsd.org/base/stable/10@300284 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
usr.sbin/route6d/route6d.c