diff options
author | Jay Freeman (saurik) <saurik@saurik.com> | 2008-04-10 02:26:36 +0000 |
---|---|---|
committer | Jay Freeman (saurik) <saurik@saurik.com> | 2008-04-10 02:26:36 +0000 |
commit | 5f6bff8c3ad91b45f72d8975d110876a4d6bf300 (patch) | |
tree | d9244078db95d693b948ae1784088a5c5df8a5b7 /exec.mm | |
parent | 9743c0151780da71d82a33fd28ed72b75750072d (diff) |
Ported Cydia to gcc 4.2.
Diffstat (limited to 'exec.mm')
-rw-r--r-- | exec.mm | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |