r18393 - gnucash/trunk/src/import-export/hbci - Bug #567090: Fix erroneous password length comparison.

Christian Stimming cstim at code.gnucash.org
Mon Oct 26 15:30:33 EDT 2009


Author: cstim
Date: 2009-10-26 15:30:32 -0400 (Mon, 26 Oct 2009)
New Revision: 18393
Trac: http://svn.gnucash.org/trac/changeset/18393

Modified:
   gnucash/trunk/src/import-export/hbci/hbci-interaction.c
Log:
Bug #567090: Fix erroneous password length comparison.

Modified: gnucash/trunk/src/import-export/hbci/hbci-interaction.c
===================================================================
--- gnucash/trunk/src/import-export/hbci/hbci-interaction.c	2009-10-25 21:02:17 UTC (rev 18392)
+++ gnucash/trunk/src/import-export/hbci/hbci-interaction.c	2009-10-26 19:30:32 UTC (rev 18393)
@@ -408,7 +408,7 @@
       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 @@
       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 "



More information about the gnucash-changes mailing list