Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/keepassxreboot/keepassxc.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/totp/totp.cpp')
-rw-r--r--src/totp/totp.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/totp/totp.cpp b/src/totp/totp.cpp
index 105196fcd..1936cce75 100644
--- a/src/totp/totp.cpp
+++ b/src/totp/totp.cpp
@@ -113,7 +113,7 @@ QSharedPointer<Totp::Settings> Totp::parseSettings(const QString& rawSettings, c
}
// Bound digits and step
- settings->digits = qMax(1u, settings->digits);
+ settings->digits = qBound(1u, settings->digits, 10u);
settings->step = qBound(1u, settings->step, 60u);
// Detect custom settings, used by setup GUI