Fixed a crash on Snow Leopard.

This commit is contained in:
Damiano Galassi committed 2014-10-29 19:00:16 +01:00
1 parent 1fce33d59e
commit b75f2bf6f2
2 files changed
+7 -7

No files matched your search

+1 -1
View File
@@ -42,7 +42,7 @@
- (void)writeToLog:(NSString *)string {
if (self.fileURL) {
FILE *f = fopen([self.fileURL fileSystemRepresentation], "a");
FILE *f = fopen([[self.fileURL path] fileSystemRepresentation], "a");
fprintf(f, "%s %s", [[self currentTime] UTF8String], [string UTF8String]);
fclose(f);
}