summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJay Freeman (saurik) <saurik@saurik.com>2016-08-27 00:50:04 -0700
committerJay Freeman (saurik) <saurik@saurik.com>2016-08-27 00:50:04 -0700
commit10ca2b00cab7b80e2275a41fe11205676ee65ead (patch)
treeb76dfebbf545211ad225f00f854f7adf581e0fb9
parent1acc78fbd43e2ba8abe85b8c4cc6a73e360eb936 (diff)
downloadldid-10ca2b00cab7b80e2275a41fe11205676ee65ead.tar.gz
ldid-10ca2b00cab7b80e2275a41fe11205676ee65ead.tar.zst
ldid-10ca2b00cab7b80e2275a41fe11205676ee65ead.zip
Fix requirement allocation (covered by 0x3000 :/).
-rw-r--r--ldid.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/ldid.cpp b/ldid.cpp
index 7e4dd03..0c70b40 100644
--- a/ldid.cpp
+++ b/ldid.cpp
@@ -1505,7 +1505,7 @@ std::vector<char> Sign(const void *idata, size_t isize, std::streambuf &output,
special = std::max(special, CSSLOT_REQUIREMENTS);
alloc += sizeof(struct BlobIndex);
- if (!requirement.empty())
+ if (requirement.empty())
alloc += 0xc;
else
alloc += requirement.size();