From: Jay Freeman (saurik) Date: Sun, 4 Sep 2016 00:39:43 +0000 (-0700) Subject: If team ID is not specified, don't output its NUL. X-Git-Tag: v2.1.0~33 X-Git-Url: https://git.saurik.com/ldid.git/commitdiff_plain/d74ad7c4af548a97c011ab2279e55bee229946b7?ds=inline If team ID is not specified, don't output its NUL. --- 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;