git: newfs_hammer2 - Cleanup slight code mess

Matthew Dillon dillon at crater.dragonflybsd.org
Tue Oct 13 10:26:48 PDT 2020


commit eabc9a2cc50382b2ecd6da20e1c786627b72f280
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date:   Tue Oct 13 10:23:56 2020 -0700

    newfs_hammer2 - Cleanup slight code mess
    
    * Cleanup the use of NLabels in the strlen() tests.
    
    * Require -L labels to not be 0-length, and change the string length
      limit from 64 to 63.  64 should work just fine since we store the
      length field, but its easier to debug with termination.
    
    Reported-by: kHacks

Summary of changes:
 sbin/newfs_hammer2/newfs_hammer2.c | 13 ++++++++++---
 1 file changed, 10 insertions(+), 3 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/eabc9a2cc50382b2ecd6da20e1c786627b72f280


-- 
DragonFly BSD source repository


More information about the Commits mailing list