typo caused only a single character of a password to be stored in the keychain

This commit is contained in:
Mitchell Livingston 2008-06-16 23:13:56 +00:00
parent 842293a1c8
commit 87f0b40589
1 changed files with 1 additions and 1 deletions

View File

@ -1161,7 +1161,7 @@
- (void) setKeychainPassword: (const char *) password forService: (const char *) service username: (const char *) username
{
SecKeychainItemRef item = NULL;
NSUInteger passwordLength = strlen(password) > 0;
NSUInteger passwordLength = strlen(password);
OSStatus result = SecKeychainFindGenericPassword(NULL, strlen(service), service, strlen(username), username, NULL, NULL, &item);
if (result == noErr && item)