From 630b3e761d18ed1aee962b73a288fe2dbafb5d48 Mon Sep 17 00:00:00 2001 From: Bibiko Date: Fri, 4 Sep 2009 09:32:10 +0000 Subject: =?UTF-8?q?=E2=80=A2=20the=20replacing=20of=20the=20deprecated=20s?= =?UTF-8?q?tringWithCString:length:=20method=20in=20r1313=20leads=20to=20t?= =?UTF-8?q?he=20issue=20that=20no=20password=20can=20be=20read=20from=20th?= =?UTF-8?q?e=20keychain;=20reverted=20to=20r1212=20in=20order=20to=20keep?= =?UTF-8?q?=20SP=20workable=20until=20a=20fix=20is=20found?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Source/SPKeychain.m | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Source') diff --git a/Source/SPKeychain.m b/Source/SPKeychain.m index 0523d55b..4a62c310 100644 --- a/Source/SPKeychain.m +++ b/Source/SPKeychain.m @@ -137,7 +137,8 @@ ); if (status == noErr) { - password = [NSString stringWithCString:passwordData encoding:NSUTF8StringEncoding]; + password = [NSString stringWithCString:passwordData length:passwordLength]; + // password = [NSString stringWithCString:passwordData encoding:NSUTF8StringEncoding]; // Free the data allocated by SecKeychainFindGenericPassword: SecKeychainItemFreeContent( -- cgit v1.2.3