pack-bitmap-write: use GIT_MAX_RAWSZ for allocation
[gitweb.git] / pack-bitmap-write.c
index d977e9bacb19ed766dd0a501b6fbcae800bb4ae0..6f0c78d6aaefcc678713eab95bb127cb7b76dff3 100644 (file)
@@ -11,6 +11,7 @@
 #include "pack-bitmap.h"
 #include "sha1-lookup.h"
 #include "pack-objects.h"
+#include "commit-reach.h"
 
 struct bitmapped_commit {
        struct commit *commit;
@@ -36,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;