diff options
author | René Scharfe <l.s.r@web.de> | 2015-02-21 20:55:22 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2015-02-22 12:01:38 -0800 |
commit | 2ce63e9fac242a70cd6d9e1325063bbb2e5091f8 (patch) | |
tree | 3eb4d08d659499ec4781e3eb3f42c491cb9439f8 /t/t5404-tracking-branches.sh | |
parent | pretty: use starts_with() to check for a prefix (diff) | |
download | tgif-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 't/t5404-tracking-branches.sh')
0 files changed, 0 insertions, 0 deletions