aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVincent Richard <[email protected]>2009-11-03 12:37:51 +0000
committerVincent Richard <[email protected]>2009-11-03 12:37:51 +0000
commit75b32c4125437c720aebca4dec63ced30209e1ba (patch)
tree80ea7a9254fef365cdd833acf74b4b7cd79be0eb
parentFixed possible segfault (thanks to John van der Kamp, from Zarafa). (diff)
downloadvmime-75b32c4125437c720aebca4dec63ced30209e1ba.tar.gz
vmime-75b32c4125437c720aebca4dec63ced30209e1ba.zip
Fixed possible segfault (thanks to László Vadócz).
-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;
}
}