summaryrefslogtreecommitdiff
path: root/builtin/branch.c
diff options
context:
space:
mode:
authorLibravatar Jeff King <peff@peff.net>2016-01-18 15:02:44 -0500
committerLibravatar Junio C Hamano <gitster@pobox.com>2016-01-19 09:53:08 -0800
commit50250491bded3190e16978e836a4dbe129c632cf (patch)
treea6c3b618bed2c01a503aa0a9b75bd053a8f0f564 /builtin/branch.c
parentshortlog: match both "Author:" and "author" on stdin (diff)
downloadtgif-50250491bded3190e16978e836a4dbe129c632cf.tar.xz
shortlog: use strbufs to read from stdin
We currently use fixed-size buffers with fgets(), which could lead to incorrect results in the unlikely event that a line had something like "Author:" at exactly its 1024th character. But it's easy to convert this to a strbuf, and because we can reuse the same buffer through the loop, we don't even pay the extra allocation cost. Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/branch.c')
0 files changed, 0 insertions, 0 deletions