summaryrefslogtreecommitdiff
path: root/exec.mm
diff options
context:
space:
mode:
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;