From: Joseph Spiros Date: Mon, 26 Dec 2005 05:55:43 +0000 (+0000) Subject: Using initWithBytes: instead of initWithCharacters: since we're not dealing with... X-Git-Tag: v1.6.5~3 X-Git-Url: http://git.ithinksw.org/MenuTunes.git/commitdiff_plain/082effddb318ef06143c52d61ee29041e1d8eccd Using initWithBytes: instead of initWithCharacters: since we're not dealing with unichars. --- diff --git a/PreferencesController.m b/PreferencesController.m index 962b7d8..87181d4 100755 --- a/PreferencesController.m +++ b/PreferencesController.m @@ -184,7 +184,7 @@ static PreferencesController *prefs = nil; ITDebugLog(@"Audioscrobbler: Error getting keychain item password: %i", status); } else { NSLog(@"Audioscrobbler: password buffer: \"%s\" \"Length: %i\"", buffer, length); - pass = [[NSString alloc] initWithCharacters:(unichar *)buffer length:length]; + pass = [[NSString alloc] initWithBytes:buffer length:length encoding:NSUTF8StringEncoding]; } if (status != noErr) { ITDebugLog(@"Audioscrobbler: Error deleting keychain item: %i", status);