Call fileSystemRepresentation directly on NSURL.

This commit is contained in:
Damiano Galassi committed 2016-09-09 17:14:45 +02:00
1 parent d7982171fd
commit 7be3195c84
1 file changed
+1 -1
+1 -1
View File
@@ -42,7 +42,7 @@
- (void)writeToLog:(NSString *)string {
if (self.fileURL) {
FILE *f = fopen((self.fileURL).path.fileSystemRepresentation, "a");
FILE *f = fopen(self.fileURL.fileSystemRepresentation, "a");
if (f) {
fprintf(f, "%s %s", [self currentTime].UTF8String, string.UTF8String);
fclose(f);