aboutsummaryrefslogtreecommitdiffstats
path: root/src/utility/stringUtils.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/utility/stringUtils.cpp')
-rw-r--r--src/utility/stringUtils.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/utility/stringUtils.cpp b/src/utility/stringUtils.cpp
index 03b2057d..abae8f9a 100644
--- a/src/utility/stringUtils.cpp
+++ b/src/utility/stringUtils.cpp
@@ -142,7 +142,7 @@ string::size_type stringUtils::countASCIIchars
{
if (parserHelpers::isAscii(*i))
{
- if (*i != '=' || *(i + 1) != '?') // To avoid bad behaviour...
+ if (*i != '=' || ((i + 1) != end && *(i + 1) != '?')) // To avoid bad behaviour...
++count;
}
}