aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Source/SPKeychain.m3
1 files changed, 2 insertions, 1 deletions
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(