commit dc7edd429e3aae9d685c43504872d528567f3007 from: Stefan Sperling date: Sun Aug 22 12:58:34 2021 UTC fix miscalculation of the final pack file size reported by got_pack_create() commit - cce2f4851ec199cbdf54fd82f3cc5ab38d5d68f3 commit + dc7edd429e3aae9d685c43504872d528567f3007 blob - e18f0ca3920ec76e50fd90d999b3192143dbf35c blob + 73b754dfefc5345d57bb8ffe4d81d0b0f8859745 --- lib/pack_create.c +++ lib/pack_create.c @@ -1257,7 +1257,7 @@ genpack(uint8_t *pack_sha1, FILE *packfile, if (n != SHA1_DIGEST_LENGTH) err = got_ferror(packfile, GOT_ERR_IO); packfile_size += SHA1_DIGEST_LENGTH; - packfile_size += 16; /* pack file header */ + packfile_size += sizeof(struct got_packfile_hdr); err = progress_cb(progress_arg, packfile_size, nours, nmeta, nmeta, nmeta); if (err)