diff options
Diffstat (limited to 'Source/SPKeychain.m')
-rw-r--r-- | Source/SPKeychain.m | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/SPKeychain.m b/Source/SPKeychain.m index 5e98eb26..0523d55b 100644 --- a/Source/SPKeychain.m +++ b/Source/SPKeychain.m @@ -137,7 +137,7 @@ ); if (status == noErr) { - password = [NSString stringWithCString:passwordData length:passwordLength]; + password = [NSString stringWithCString:passwordData encoding:NSUTF8StringEncoding]; // Free the data allocated by SecKeychainFindGenericPassword: SecKeychainItemFreeContent( |