aboutsummaryrefslogtreecommitdiff
path: root/connect.c
diff options
context:
space:
mode:
authorRené Scharfe <l.s.r@web.de>2015-02-21 20:55:22 +0100
committerJunio C Hamano <gitster@pobox.com>2015-02-22 12:01:38 -0800
commit2ce63e9fac242a70cd6d9e1325063bbb2e5091f8 (patch)
tree3eb4d08d659499ec4781e3eb3f42c491cb9439f8 /connect.c
parent68d6d6eb402d7e39c89ce43ca37e6c16b941890c (diff)
downloadgit-2ce63e9fac242a70cd6d9e1325063bbb2e5091f8.tar.gz
git-2ce63e9fac242a70cd6d9e1325063bbb2e5091f8.tar.xz
sha1_name: use strlcpy() to copy strings
Use strlcpy() instead of calling strncpy() and then setting the last byte of the target buffer to NUL explicitly. This shortens and simplifies the code a bit. Signed-of-by: Rene Scharfe <l.s.r@web.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'connect.c')
0 files changed, 0 insertions, 0 deletions