Make sure that strings passed to printline() are always NUL terminated.
authorbluhm <bluhm@openbsd.org>
Fri, 3 Sep 2021 23:57:30 +0000 (23:57 +0000)
committerbluhm <bluhm@openbsd.org>
Fri, 3 Sep 2021 23:57:30 +0000 (23:57 +0000)
commitd9bba4bb76b80a8d367730af6c8fd95180f76cec
treebf78f4d2b1bd6b1fa03663189a83b1c3317685cc
parent76bbb4f09a5f512f383fdc3cf053844f8024f9fc
Make sure that strings passed to printline() are always NUL terminated.
There was a corner case with a very long message received over TCP
or TLS where this was not clear.  Force a '\0' where this line is
truncated.
OK martijn@ deraadt@
usr.sbin/syslogd/syslogd.c