]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
MFC r299867
authortruckman <truckman@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Fri, 20 May 2016 07:00:11 +0000 (07:00 +0000)
committertruckman <truckman@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Fri, 20 May 2016 07:00:11 +0000 (07:00 +0000)
commitceef5a29b87f37b23559f6d70f0e0ce5e39de258
tree29c42c1f6ecd086d4da12ef4266b3f0cb38a5779
parent6e1e70b99ae7047ff9688b7d8df2298000bc4810
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, 10099721009973

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