We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1360967 commit aeecdcdCopy full SHA for aeecdcd
archive-zip.c
@@ -427,12 +427,12 @@ static void write_zip_trailer(const unsigned char *sha1)
427
copy_le16(trailer.entries, zip_dir_entries);
428
copy_le32(trailer.size, zip_dir_offset);
429
copy_le32(trailer.offset, zip_offset);
430
- copy_le16(trailer.comment_length, sha1 ? 40 : 0);
+ copy_le16(trailer.comment_length, sha1 ? GIT_SHA1_HEXSZ : 0);
431
432
write_or_die(1, zip_dir, zip_dir_offset);
433
write_or_die(1, &trailer, ZIP_DIR_TRAILER_SIZE);
434
if (sha1)
435
- write_or_die(1, sha1_to_hex(sha1), 40);
+ write_or_die(1, sha1_to_hex(sha1), GIT_SHA1_HEXSZ);
436
}
437
438
static void dos_time(time_t *time, int *dos_date, int *dos_time)
0 commit comments