aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar Hoa V. DINH <dinh.viet.hoa@gmail.com>2013-08-30 09:38:20 -0700
committerGravatar Hoa V. DINH <dinh.viet.hoa@gmail.com>2013-08-30 09:38:20 -0700
commita50dcb62b2101695deb7cdfd10b4f0f3e595d62f (patch)
tree69a3cb78df881d00f9c9f9bd429cb1bf0598fc92
parent47a10e080f8746f0aa447b95535011ea38c5341e (diff)
Fixed crash in hasSuffix (Fixed #141)
-rw-r--r--src/core/basetypes/MCString.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/basetypes/MCString.cc b/src/core/basetypes/MCString.cc
index cc3b6e91..43c9e7ae 100644
--- a/src/core/basetypes/MCString.cc
+++ b/src/core/basetypes/MCString.cc
@@ -1806,8 +1806,8 @@ String * String::flattenHTML()
bool String::hasSuffix(String * suffix)
{
if (mLength >= suffix->mLength) {
- if (u_memcmp(suffix->mUnicodeChars + (mLength - suffix->mLength),
- mUnicodeChars, suffix->mLength) == 0) {
+ if (u_memcmp(mUnicodeChars + (mLength - suffix->mLength),
+ suffix->mUnicodeChars, suffix->mLength) == 0) {
return true;
}
}