summaryrefslogtreecommitdiff
path: root/git-p4.py
diff options
context:
space:
mode:
authorLibravatar René Scharfe <l.s.r@web.de>2015-02-21 20:55:22 +0100
committerLibravatar Junio C Hamano <gitster@pobox.com>2015-02-22 12:01:38 -0800
commit2ce63e9fac242a70cd6d9e1325063bbb2e5091f8 (patch)
tree3eb4d08d659499ec4781e3eb3f42c491cb9439f8 /git-p4.py
parentpretty: use starts_with() to check for a prefix (diff)
downloadtgif-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 'git-p4.py')
0 files changed, 0 insertions, 0 deletions