X-Git-Url: https://git.saurik.com/cydia.git/blobdiff_plain/584f58f8f35db46691f63fb1b3724c7a575abb8d..3d37fc0dc39446db841722f6ac3eccab54f406e1:/exec.mm?ds=inline 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;