]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
traceroute: Silence compiler warning
authorJose Luis Duran <jlduran@gmail.com>
Fri, 17 Nov 2023 16:15:27 +0000 (16:15 +0000)
committerWarner Losh <imp@FreeBSD.org>
Sat, 3 Feb 2024 03:14:09 +0000 (20:14 -0700)
commitaf87ba65223f05e14590a2564e8c7b4eec7b53a7
tree3469bca5d20fb6425f08f7422e26b193d6851aba
parent7414d14bd51d8378057bbe952c2715b9f32d1d3e
traceroute: Silence compiler warning

Silence the warning:

argument to 'sizeof' in 'strncpy' call is the same expression as the
source; did you mean to use the size of the destination?"

by using strlcpy() and the size of the destination (device).

No functional change intended.

Reviewed by: imp
Pull Request: https://github.com/freebsd/freebsd-src/pull/901
contrib/traceroute/ifaddrlist.c