Replace HOST_NAME_MAX+1 with NI_MAXHOST when the hostname is used
authorbluhm <bluhm@openbsd.org>
Mon, 19 Jan 2015 16:40:49 +0000 (16:40 +0000)
committerbluhm <bluhm@openbsd.org>
Mon, 19 Jan 2015 16:40:49 +0000 (16:40 +0000)
commit38bc45fc2277bb8b79fc210a7497a386cebe2798
treeb43a2bc62c47df6d18a595bc3d173023efb123e5
parent7a17d89036f5acd55e5b8a36cdf825af51f9a7a9
Replace HOST_NAME_MAX+1 with NI_MAXHOST when the hostname is used
with getaddrinfo() or getnameinfo(), but keep HOST_NAME_MAX+1 when
the hostname comes from gethostname().
No binary change;  OK deraadt@
usr.sbin/syslogd/privsep.c
usr.sbin/syslogd/syslogd.c