summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLibravatar brian m. carlson <sandals@crustytoothpaste.net>2018-10-15 00:01:49 +0000
committerLibravatar Junio C Hamano <gitster@pobox.com>2018-10-15 12:53:15 +0900
commit825544a3511c679ea1b51ffaf1cd565e8ed035ec (patch)
treed13cb3ba02e98fd9d77448590a715e9c7481f8b5
parentobject_id.cocci: match only expressions of type 'struct object_id' (diff)
downloadtgif-825544a3511c679ea1b51ffaf1cd565e8ed035ec.tar.xz
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>
-rw-r--r--pack-bitmap-write.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pack-bitmap-write.c b/pack-bitmap-write.c
index fc82f37a02..6f0c78d6aa 100644
--- a/pack-bitmap-write.c
+++ b/pack-bitmap-write.c
@@ -37,7 +37,7 @@ struct bitmap_writer {
struct progress *progress;
int show_progress;
- unsigned char pack_checksum[20];
+ unsigned char pack_checksum[GIT_MAX_RAWSZ];
};
static struct bitmap_writer writer;