]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Use strlcpy() instead of strncpy() when copying ifname to ensure
authortruckman <truckman@FreeBSD.org>
Sun, 15 May 2016 22:17:41 +0000 (22:17 +0000)
committertruckman <truckman@FreeBSD.org>
Sun, 15 May 2016 22:17:41 +0000 (22:17 +0000)
commit869fe5e5993ef8071c31c2abc96b8437aa6efab6
tree7a5cb771acc219cb8d7a07b57ce1b168400fd893
parent28ec250f5fe1b00bd2ff0f994644b74f705fa83a
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: 99186, 991864, 991865
MFC after: 1 week
usr.sbin/rtsold/if.c