Bug #567090: Fix erroneous password length comparison.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18393 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
Christian Stimming 2009-10-26 19:30:32 +00:00
parent 7f486984a9
commit 990592d496

View File

@ -408,7 +408,7 @@ static int inputBoxCB(AB_BANKING *ab,
if (!retval)
break;
}
else if (strlen(passwd) >= (unsigned int)maxLen) {
else if (strlen(passwd) > (unsigned int)maxLen) {
gboolean retval;
char *msg =
g_strdup_printf ( _("You entered %ld characters, but the PIN must "
@ -489,7 +489,7 @@ static int getTanCB(AB_BANKING *ab,
if (!retval)
break;
}
else if (strlen(passwd) >= (unsigned int)maxLen) {
else if (strlen(passwd) > (unsigned int)maxLen) {
gboolean retval;
char *msg =
g_strdup_printf ( _("You entered %ld characters, but the TAN must "