]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC r311392:
authordelphij <delphij@FreeBSD.org>
Sun, 8 Jan 2017 07:25:22 +0000 (07:25 +0000)
committerdelphij <delphij@FreeBSD.org>
Sun, 8 Jan 2017 07:25:22 +0000 (07:25 +0000)
commitb62f2da08ffbdee21d7980061668c65fbfc23146
tree5354a2c8b3b7c4398c4ccf263c37cfa9ab2ba746
parent20d34b44ca91befeca4d8ad82e67efe41281c49d
MFC r311392:

Use strlcpy and snprintf in netstat(1).

Expand inet6name() line buffer to NI_MAXHOST and use strlcpy/snprintf
in various places.

Reported by: Anton Yuzhaninov <citrin citrin ru>
usr.bin/netstat/if.c
usr.bin/netstat/inet.c
usr.bin/netstat/inet6.c
usr.bin/netstat/mroute.c
usr.bin/netstat/netstat.h
usr.bin/netstat/route.c
usr.bin/netstat/sctp.c
usr.bin/netstat/unix.c