Skip to content

Commit

Permalink
fix up hardcoded sizes
Browse files Browse the repository at this point in the history
  • Loading branch information
tihmstar committed Jul 29, 2020
1 parent 0e10645 commit 65d722a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions img4tool/img4tool.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -860,7 +860,7 @@ ASN1DERElement tihmstar::img4tool::appendPayloadToIM4P(const ASN1DERElement &im4
cleanup([&]{
safeFree(packed);
});
size_t packedSize = size + 0x800;
size_t packedSize = size + buf2RawSize;

printf("Compression requested, compressing (%s): ", "complzss");
packed = (uint8_t *)malloc(packedSize);
Expand All @@ -886,7 +886,7 @@ ASN1DERElement tihmstar::img4tool::appendPayloadToIM4P(const ASN1DERElement &im4
cleanup([&]{
safeFree(packed);
});
size_t packedSize = size + 0x800;
size_t packedSize = size;
printf("Compression requested, compressing (%s): ", "bvx2");
packed = (uint8_t *)malloc(packedSize);

Expand Down

0 comments on commit 65d722a

Please sign in to comment.