Commit Diff


commit - bf1c78e5100932aa445b8ef07ebf9b712500c67e
commit + f990756a3987ba6410baf611d561e9b8f285f047
blob - 68de5bf9f8523cf07c88e05955ce9b4c6abc451a
blob + 37c3c83c15f1a14e488b614156337ebb6f6fc4b0
--- lib/pack.c
+++ lib/pack.c
@@ -1143,7 +1143,7 @@ resolve_ref_delta(struct got_delta_chain *deltas, stru
 	if (err)
 		return err;
 	if (pack->map) {
-		delta_data_offset = delta_offset + tslen + sizeof(id);
+		delta_data_offset = delta_offset + tslen + SHA1_DIGEST_LENGTH;
 	} else {
 		delta_data_offset = lseek(pack->fd, 0, SEEK_CUR);
 		if (delta_data_offset == -1)