diff options
author | René Scharfe <rene.scharfe@lsrfire.ath.cx> | 2013-04-25 21:40:25 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2013-04-25 15:02:51 -0700 |
commit | 30e77bcb5008d1947c721fb084e21eeaa591c45e (patch) | |
tree | 5e4cf4c72115b69ac0e96cfa2b7a6f763c41c50d /t/t7300-clean.sh | |
parent | blame: handle broken commit headers gracefully (diff) | |
download | tgif-30e77bcb5008d1947c721fb084e21eeaa591c45e.tar.xz |
pretty: simplify input line length calculation in pp_user_info()
Instead of searching for LF and NUL with two strchr() calls use a single
strchrnul() call. We don't need to check if the returned pointer is NULL
because either we'll find the NUL at the end of line, or the caller
forgot to NUL-terminate the string and we'll overrun the buffer in any
case. Also we don't need to pass LF or NUL to split_ident_line() as it
ignores it anyway.
Signed-off-by: Rene Scharfe <rene.scharfe@lsrfire.ath.cx>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t7300-clean.sh')
0 files changed, 0 insertions, 0 deletions