summaryrefslogtreecommitdiff
path: root/src/gui/registerdialog.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/registerdialog.cpp')
-rw-r--r--src/gui/registerdialog.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/registerdialog.cpp b/src/gui/registerdialog.cpp
index bafcad58a..183f6b6b8 100644
--- a/src/gui/registerdialog.cpp
+++ b/src/gui/registerdialog.cpp
@@ -219,7 +219,7 @@ void RegisterDialog::action(const gcn::ActionEvent &event)
minPass);
error = 2;
}
- else if (mPasswordField->getText().length() > maxPass - 1 )
+ else if (mPasswordField->getText().length() > maxPass)
{
// Pass too long
errorMsg = strprintf