mirror of
https://github.com/git/git.git
synced 2025-12-12 20:36:24 +01:00
gpg-interface: use size_t for signature buffer size
Even though our object sizes (from which these buffers would come) are typically "unsigned long", this is something we'd like to eventually fix (since it's only 32-bits even on 64-bit Windows). It makes more sense to use size_t when taking an in-memory buffer. Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Ben Toews <mastahyeti@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
committed by
Junio C Hamano
parent
f80bee27e3
commit
e6fa6cde5b
@@ -101,7 +101,7 @@ void print_signature_buffer(const struct signature_check *sigc, unsigned flags)
|
||||
fputs(output, stderr);
|
||||
}
|
||||
|
||||
size_t parse_signature(const char *buf, unsigned long size)
|
||||
size_t parse_signature(const char *buf, size_t size)
|
||||
{
|
||||
char *eol;
|
||||
size_t len = 0;
|
||||
|
||||
Reference in New Issue
Block a user