diff options
author | Jeff King <peff@peff.net> | 2018-02-14 13:07:19 -0500 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2018-02-14 10:31:10 -0800 |
commit | 7e8089c986790fd8ef9d89bf71c9a91901d7f884 (patch) | |
tree | 3b9f197733dd32e02db0b12fd297cf422459c4e6 /t/t6013-rev-list-reverse-parents.sh | |
parent | test-hashmap: use xsnprintf rather than snprintf (diff) | |
download | tgif-7e8089c986790fd8ef9d89bf71c9a91901d7f884.tar.xz |
test-hashmap: use strbuf_getline rather than fgets
Using fgets() with a fixed-size buffer can lead to lines
being accidentally split across two calls if they are larger
than the buffer size.
As this is just a test helper, this is unlikely to be a
problem in practice. But since people may look at test
helpers as reference code, it's a good idea for them to
model the preferred behavior.
Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t6013-rev-list-reverse-parents.sh')
0 files changed, 0 insertions, 0 deletions