summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--macosx/HBDVDDetector.m4
1 files changed, 2 insertions, 2 deletions
diff --git a/macosx/HBDVDDetector.m b/macosx/HBDVDDetector.m
index 6d12ed64e..05ff786b1 100644
--- a/macosx/HBDVDDetector.m
+++ b/macosx/HBDVDDetector.m
@@ -83,11 +83,11 @@
struct statfs s;
statfs([path fileSystemRepresentation], &s);
- bsdName = [NSString stringWithUTF8String:s.f_mntfromname];
+ bsdName = @(s.f_mntfromname);
if ([bsdName hasPrefix:@"/dev/"])
{
- bsdName = [bsdName stringByReplacingCharactersInRange:NSMakeRange(0, 5) withString:@""];
+ bsdName = [bsdName substringFromIndex:5];
}
return [bsdName retain];