Call fileSystemRepresentation directly on NSURL.
This commit is contained in:
1 parent
d7982171fd
commit
7be3195c84
1 file changed
+1
-1
+1
-1
@@ -42,7 +42,7 @@
|
|||||||
|
|
||||||
- (void)writeToLog:(NSString *)string {
|
- (void)writeToLog:(NSString *)string {
|
||||||
if (self.fileURL) {
|
if (self.fileURL) {
|
||||||
FILE *f = fopen((self.fileURL).path.fileSystemRepresentation, "a");
|
FILE *f = fopen(self.fileURL.fileSystemRepresentation, "a");
|
||||||
if (f) {
|
if (f) {
|
||||||
fprintf(f, "%s %s", [self currentTime].UTF8String, string.UTF8String);
|
fprintf(f, "%s %s", [self currentTime].UTF8String, string.UTF8String);
|
||||||
fclose(f);
|
fclose(f);
|
||||||
|
|||||||
Reference in new issue
Block a user