summaryrefslogtreecommitdiff
path: root/pack-bitmap-write.c
diff options
context:
space:
mode:
authorbrian m. carlson <sandals@crustytoothpaste.net>2018-10-15 00:01:49 (GMT)
committerJunio C Hamano <gitster@pobox.com>2018-10-15 03:53:15 (GMT)
commit825544a3511c679ea1b51ffaf1cd565e8ed035ec (patch)
treed13cb3ba02e98fd9d77448590a715e9c7481f8b5 /pack-bitmap-write.c
parent6afedba8c97b5a8463e45ff801218433f8392d5d (diff)
downloadgit-825544a3511c679ea1b51ffaf1cd565e8ed035ec.zip
git-825544a3511c679ea1b51ffaf1cd565e8ed035ec.tar.gz
git-825544a3511c679ea1b51ffaf1cd565e8ed035ec.tar.bz2
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>
Diffstat (limited to 'pack-bitmap-write.c')
-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 fc82f37..6f0c78d 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;