mirror of
https://github.com/transmission/transmission
synced 2024-12-26 01:27:28 +00:00
whoops vs NSString vs. a c string
This commit is contained in:
parent
b1a7b981a2
commit
362d863c02
1 changed files with 2 additions and 1 deletions
|
@ -107,7 +107,8 @@ tr_session * fHandle;
|
||||||
NSString * blocklistDir = [NSHomeDirectory() stringByAppendingPathComponent:
|
NSString * blocklistDir = [NSHomeDirectory() stringByAppendingPathComponent:
|
||||||
@"/Library/Application Support/Transmission/blocklists/"];
|
@"/Library/Application Support/Transmission/blocklists/"];
|
||||||
[[NSFileManager defaultManager] moveItemAtPath: [blocklistDir stringByAppendingPathComponent: @"level1.bin"]
|
[[NSFileManager defaultManager] moveItemAtPath: [blocklistDir stringByAppendingPathComponent: @"level1.bin"]
|
||||||
toPath: [blocklistDir stringByAppendingPathComponent: DEFAULT_BLOCKLIST_FILENAME] error: nil];
|
toPath: [blocklistDir stringByAppendingPathComponent: [NSString stringWithUTF8String: DEFAULT_BLOCKLIST_FILENAME]]
|
||||||
|
error: nil];
|
||||||
}
|
}
|
||||||
|
|
||||||
//save a new random port
|
//save a new random port
|
||||||
|
|
Loading…
Reference in a new issue