Documentation: wording fixes in the user manual and glossary
[gitweb.git] / pack-bitmap-write.c
index 1218befaf2afa2f0be4be8a582a1f85bab334ed2..5f1791a59c5e9ecd553fb9109fa774d921f777c8 100644 (file)
@@ -530,7 +530,7 @@ void bitmap_writer_finish(struct pack_idx_entry **index,
        header.version = htons(default_version);
        header.options = htons(flags | options);
        header.entry_count = htonl(writer.selected_nr);
-       memcpy(header.checksum, writer.pack_checksum, 20);
+       hashcpy(header.checksum, writer.pack_checksum);
 
        sha1write(f, &header, sizeof(header));
        dump_bitmap(f, writer.commits);