]> git.saurik.com Git - ldid.git/commitdiff
Fix requirement allocation (covered by 0x3000 :/).
authorJay Freeman (saurik) <saurik@saurik.com>
Sat, 27 Aug 2016 07:50:04 +0000 (00:50 -0700)
committerJay Freeman (saurik) <saurik@saurik.com>
Sat, 27 Aug 2016 07:50:04 +0000 (00:50 -0700)
ldid.cpp

index 7e4dd03b79bc26096f0ef948f4d8eedba1b33255..0c70b40352fc78b38a9239ffaff77b3074306c0e 100644 (file)
--- 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();