X-Git-Url: https://git.saurik.com/cydia.git/blobdiff_plain/51a1ffdf1cb0e523178958270347e3207c237159..dfaac1daef3116346d25c48b8709bfec253ab3ff:/exec.mm diff --git a/exec.mm b/exec.mm index 751a84ab..f53d2cf2 100644 --- a/exec.mm +++ b/exec.mm @@ -24,7 +24,7 @@ int main(int argc, char *argv[]) { if (NSDictionary *sysver = [NSDictionary dictionaryWithContentsOfFile:@"/System/Library/CoreServices/SystemVersion.plist"]) { if (NSString *prover = [sysver valueForKey:@"ProductVersion"]) { - Firmware_ = strdup([prover cString]); + Firmware_ = strdup([prover UTF8String]); NSArray *versions = [prover componentsSeparatedByString:@"."]; int count = [versions count]; Major_ = count > 0 ? [[versions objectAtIndex:0] intValue] : 0;