mirror of
https://github.com/transmission/transmission.git
synced 2025-12-24 12:28:52 +00:00
whoops vs NSString vs. a c string
This commit is contained in:
@@ -107,7 +107,8 @@ tr_session * fHandle;
|
||||
NSString * blocklistDir = [NSHomeDirectory() stringByAppendingPathComponent:
|
||||
@"/Library/Application Support/Transmission/blocklists/"];
|
||||
[[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
|
||||
|
||||
Reference in New Issue
Block a user