]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
MFC 299866
authortruckman <truckman@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Fri, 20 May 2016 06:56:43 +0000 (06:56 +0000)
committertruckman <truckman@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Fri, 20 May 2016 06:56:43 +0000 (06:56 +0000)
commit6e1e70b99ae7047ff9688b7d8df2298000bc4810
tree3084ee11107a281e18dd042151b95c72050f1f00
parenta2491954277b6ab426680f9a57f6ce7683aef96e
MFC 299866

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

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