git: who - Fix buffer termination

Matthew Dillon dillon at crater.dragonflybsd.org
Fri Jul 5 19:06:12 PDT 2019


commit 0d92c45cd53da8594470f80ff081009c09af6d24
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date:   Fri Jul 5 19:03:25 2019 -0700

    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

Summary of changes:
 usr.bin/who/utmpentry.c | 21 +++++++++++++++------
 1 file changed, 15 insertions(+), 6 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/0d92c45cd53da8594470f80ff081009c09af6d24


-- 
DragonFly BSD source repository



More information about the Commits mailing list