git: libdevstat - Limit sscanf field, fix redundant condition

Matthew Dillon dillon at crater.dragonflybsd.org
Mon Apr 10 22:23:06 PDT 2017


commit 037fe73a8ffbbc197aee503beeae9ac282bce088
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date:   Mon Apr 10 22:13:55 2017 -0700

    libdevstat - Limit sscanf field, fix redundant condition
    
    * Limit a sscanf field to MAXHOSTNAMELEN - 1.
    
    * Remove a redundant condition already tested by the first part of a
      conditional.
    
    Dragonfly-bugs: 3009 (dcb)

Summary of changes:
 lib/libc/net/ether_addr.c | 6 +++++-
 lib/libdevstat/devstat.c  | 8 ++------
 2 files changed, 7 insertions(+), 7 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/037fe73a8ffbbc197aee503beeae9ac282bce088


-- 
DragonFly BSD source repository



More information about the Commits mailing list