]> 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:06:21 +0000 (22:06 +0000)
committertruckman <truckman@FreeBSD.org>
Sun, 15 May 2016 22:06:21 +0000 (22:06 +0000)
commit28ec250f5fe1b00bd2ff0f994644b74f705fa83a
treea3ceca648076febe2b02753a7049605551bdd480
parent1c108de8e62aa78dbe1a185d9bd901be14523ea7
Use strlcpy() instead of strncpy() when copying ifname to ensure
that it is NUL terminated.  Additional NUL padding is not required
for short names.

MFC after: 1 week
usr.sbin/rtadvd/config.c
usr.sbin/rtadvd/if.c