HomeFreeBSD

Use strlcpy() instead of strncpy() when copying ifname to ensure

Description

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
MFC after: 1 week

Details

Provenance
truckmanAuthored on
Parents
rS299865: When handling SIOCSIFNAME ensure that the new interface name is NUL
Branches
Unknown
Tags
Unknown