summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tools/ideviceprovision.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/ideviceprovision.c b/tools/ideviceprovision.c
index db00702..0bef7e8 100644
--- a/tools/ideviceprovision.c
+++ b/tools/ideviceprovision.c
@@ -156,7 +156,7 @@ static plist_t profile_get_embedded_plist(plist_t profile)
size_t slen = asn1_item_get_size(pp);
char bsize = *(pp+1);
if (bsize & 0x80) {
- slen += 2 + bsize & 0xF;
+ slen += 2 + (bsize & 0xF);
} else {
slen += 3;
}