summaryrefslogtreecommitdiff
path: root/commit.c
diff options
context:
space:
mode:
authorRené Scharfe <l.s.r@web.de>2024-02-09 21:41:47 +0100
committerJunio C Hamano <gitster@pobox.com>2024-02-12 09:22:20 -0800
commit020456cb744b16f686d9220eb4b95a8e157c3485 (patch)
tree48f3c1a83576091398b3ad29b131b69294b3c07d /commit.c
parentf51d790b67255dd40b55654527fc4f59a53f44b0 (diff)
receive-pack: use find_commit_header() in check_nonce()
Use the public function find_commit_header() and remove find_header(), as it becomes unused. This is safe and appropriate because we pass the NUL-terminated payload buffer to check_nonce() instead of its start and length. The underlying strbuf push_cert cannot contain NULs, as it is built using strbuf_addstr(), only. We no longer need to call strlen(), as find_commit_header() returns the length of nonce already. Signed-off-by: René Scharfe <l.s.r@web.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'commit.c')
0 files changed, 0 insertions, 0 deletions