From 362d863c02ff8172cb0fd880406d701485c83f1a Mon Sep 17 00:00:00 2001 From: Mitchell Livingston Date: Mon, 1 Nov 2010 00:21:17 +0000 Subject: [PATCH] whoops vs NSString vs. a c string --- macosx/PrefsController.m | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/macosx/PrefsController.m b/macosx/PrefsController.m index d99192b3d..2b41bcdd4 100644 --- a/macosx/PrefsController.m +++ b/macosx/PrefsController.m @@ -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 -- 2.40.0