From d74ad7c4af548a97c011ab2279e55bee229946b7 Mon Sep 17 00:00:00 2001 From: "Jay Freeman (saurik)" Date: Sat, 3 Sep 2016 17:39:43 -0700 Subject: If team ID is not specified, don't output its NUL. --- ldid.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ldid.cpp b/ldid.cpp index c652a90..20abec9 100644 --- a/ldid.cpp +++ b/ldid.cpp @@ -1621,7 +1621,8 @@ std::vector Sign(const void *idata, size_t isize, std::streambuf &output, put(data, &directory, sizeof(directory)); put(data, identifier.c_str(), identifier.size() + 1); - put(data, team.c_str(), team.size() + 1); + if (!team.empty()) + put(data, team.c_str(), team.size() + 1); uint8_t storage[special + normal][LDID_SHA1_DIGEST_LENGTH]; uint8_t (*hashes)[LDID_SHA1_DIGEST_LENGTH] = storage + special; -- cgit v1.2.3-56-ge451