git: libtelnet: Some small updates to sra.c from NetBSD

Aaron LI aly at crater.dragonflybsd.org
Thu Jul 5 02:15:57 PDT 2018


commit 53bdbccdd1ed7c593c68402516183bfe1f21a1be
Author: Aaron LI <aly at aaronly.me>
Date:   Thu Jul 5 16:47:29 2018 +0800

    libtelnet: Some small updates to sra.c from NetBSD
    
    * Define 'SMALL_LEN' and 'XSMALL_LEN' to replace the explicit numbers.
      (also replaced the original PASS_SIZE)
    
    * Use 'strlcpy()' and 'snprintf()' when appropriate.
    
    * Clean some type casts.
    
    * Some style(9) tweaks.

Summary of changes:
 lib/libtelnet/sra.c | 78 ++++++++++++++++++++++++++++-------------------------
 1 file changed, 42 insertions(+), 36 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/53bdbccdd1ed7c593c68402516183bfe1f21a1be


-- 
DragonFly BSD source repository



More information about the Commits mailing list