Use NI_MAXHOST and NI_MAXSERV constants to allocate temporary strings
authorbluhm <bluhm@openbsd.org>
Sat, 6 Aug 2022 23:35:30 +0000 (23:35 +0000)
committerbluhm <bluhm@openbsd.org>
Sat, 6 Aug 2022 23:35:30 +0000 (23:35 +0000)
commitde1f7a698f21e55b9905b67d8a13b9f23fa4633d
treef0ce63590516be334b452deebfbbec774e1b298f
parent878b8cfa29fd1347e86814d3d09b1f188d5483a5
Use NI_MAXHOST and NI_MAXSERV constants to allocate temporary strings
for saddr_ntop() and inet_ntop().  This avoids truncation warnings
and is better than arbitrary size values with 64 or 128 bytes.
OK deraadt@
usr.bin/tcpbench/tcpbench.c