summaryrefslogtreecommitdiff
path: root/exec.mm
diff options
context:
space:
mode:
authorJay Freeman (saurik) <saurik@saurik.com>2008-04-10 02:26:36 +0000
committerJay Freeman (saurik) <saurik@saurik.com>2008-04-10 02:26:36 +0000
commit5f6bff8c3ad91b45f72d8975d110876a4d6bf300 (patch)
treed9244078db95d693b948ae1784088a5c5df8a5b7 /exec.mm
parent9743c0151780da71d82a33fd28ed72b75750072d (diff)
Ported Cydia to gcc 4.2.
Diffstat (limited to 'exec.mm')
-rw-r--r--exec.mm2
1 files changed, 1 insertions, 1 deletions
diff --git a/exec.mm b/exec.mm
index 751a84a..f53d2cf 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;