pack-bitmap-write: use GIT_MAX_RAWSZ for allocation
Reviewed-by: Stefan Beller <sbeller@google.com> Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>maint
parent
6afedba8c9
commit
825544a351
|
@ -37,7 +37,7 @@ struct bitmap_writer {
|
||||||
|
|
||||||
struct progress *progress;
|
struct progress *progress;
|
||||||
int show_progress;
|
int show_progress;
|
||||||
unsigned char pack_checksum[20];
|
unsigned char pack_checksum[GIT_MAX_RAWSZ];
|
||||||
};
|
};
|
||||||
|
|
||||||
static struct bitmap_writer writer;
|
static struct bitmap_writer writer;
|
||||||
|
|
Loading…
Reference in New Issue