]> granicus.if.org Git - transmission/commitdiff
typo caused only a single character of a password to be stored in the keychain
authorMitchell Livingston <livings124@transmissionbt.com>
Mon, 16 Jun 2008 23:13:56 +0000 (23:13 +0000)
committerMitchell Livingston <livings124@transmissionbt.com>
Mon, 16 Jun 2008 23:13:56 +0000 (23:13 +0000)
macosx/PrefsController.m

index fa07701dd9d5d9a1d45ae2ab82a4d01fd8111484..cea0c801488e5496d577dd880e53270d71e09202 100644 (file)
 - (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)