git: telnet(1): Avoid overlapping strncpy() copies.

Rimvydas Jasinskas zrj at crater.dragonflybsd.org
Wed Jan 24 09:36:59 PST 2018


commit 2cf04ed560c3f1af0c44014c495795a761ea4b7d
Author: zrj <rimvydas.jasinskas at gmail.com>
Date:   Wed Jan 24 17:34:34 2018 +0200

    telnet(1): Avoid overlapping strncpy() copies.
    
    The cmdrc() is shifting string to the left, use temporary.
    
    While there, do some constification.

Summary of changes:
 usr.bin/telnet/commands.c | 44 ++++++++++++++++++++++++--------------------
 1 file changed, 24 insertions(+), 20 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/2cf04ed560c3f1af0c44014c495795a761ea4b7d


-- 
DragonFly BSD source repository


More information about the Commits mailing list