aboutsummaryrefslogtreecommitdiff
path: root/src/core/kconfig.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/kconfig.cpp')
-rw-r--r--src/core/kconfig.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/kconfig.cpp b/src/core/kconfig.cpp
index d9232fa5..19e82ffe 100644
--- a/src/core/kconfig.cpp
+++ b/src/core/kconfig.cpp
@@ -190,7 +190,7 @@ QString KConfigPrivate::expandString(const QString &value)
nEndPos++;
aVarName = aValue.midRef(nDollarPos + 2, nEndPos - nDollarPos - 3);
} else {
- while (nEndPos <= aValue.length() &&
+ while (nEndPos < aValue.length() &&
(aValue[nEndPos].isNumber() ||
aValue[nEndPos].isLetter() ||
aValue[nEndPos] == QLatin1Char('_'))) {