who - Fix buffer termination
authorMatthew Dillon <dillon@apollo.backplane.com>
Sat, 6 Jul 2019 02:03:25 +0000 (19:03 -0700)
committerMatthew Dillon <dillon@apollo.backplane.com>
Sat, 6 Jul 2019 02:03:25 +0000 (19:03 -0700)
commit0d92c45cd53da8594470f80ff081009c09af6d24
tree083caa66c8d9257a42143fd5e26c56c205b678f7
parenteb0e71460f3a21be2d9efc2391a834f95ba94974
who - Fix buffer termination

* Fix printing output when e.g. the utmp host field fills the whole
  buffer.  This doesn't fix the fact that the host field is too small.

Reported-by: dkgroot/NI33
usr.bin/who/utmpentry.c