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>
brian m. carlson committed
Oct 15, 2018 at 00:01 UTC
825544a3511c679ea1b51ffaf1cd565e8ed035ec
1 file changed
+1
-1
pack-bitmap-write.c
+1
-1
@@ -37,7 +37,7 @@ struct bitmap_writer {
37
38
struct progress *progress;
39
int show_progress;
40
- unsigned char pack_checksum[20];
40
+ unsigned char pack_checksum[GIT_MAX_RAWSZ];
41
};
42
43
static struct bitmap_writer writer;