git.ithinksw.org
/
MenuTunes.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
84a701a
)
Using initWithBytes: instead of initWithCharacters: since we're not dealing with...
author
Joseph Spiros
<joseph.spiros@ithinksw.com>
Mon, 26 Dec 2005 05:55:43 +0000
(
05:55
+0000)
committer
Joseph Spiros
<joseph.spiros@ithinksw.com>
Mon, 26 Dec 2005 05:55:43 +0000
(
05:55
+0000)
PreferencesController.m
patch
|
blob
|
history
diff --git
a/PreferencesController.m
b/PreferencesController.m
index
962b7d8
..
87181d4
100755
(executable)
--- 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] initWith
Characters:(unichar *)buffer length:length
];
+ pass = [[NSString alloc] initWith
Bytes:buffer length:length encoding:NSUTF8StringEncoding
];
}
if (status != noErr) {
ITDebugLog(@"Audioscrobbler: Error deleting keychain item: %i", status);