]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
MFC r299868
authortruckman <truckman@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Fri, 20 May 2016 07:08:19 +0000 (07:08 +0000)
committertruckman <truckman@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Fri, 20 May 2016 07:08:19 +0000 (07:08 +0000)
commit7e9ac8d46b7e42653ec9ebcb32ae230d3ca8a6eb
tree74885025f0517971bbbd06487834d9e013a21c0e
parentceef5a29b87f37b23559f6d70f0e0ce5e39de258
MFC r299868

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: 991863, 991864, 991865

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