diff options
-rw-r--r-- | src/core/basetypes/MCString.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/basetypes/MCString.cpp b/src/core/basetypes/MCString.cpp index 98e27f64..7581343e 100644 --- a/src/core/basetypes/MCString.cpp +++ b/src/core/basetypes/MCString.cpp @@ -2370,9 +2370,9 @@ Array * String::componentsSeparatedByString(String * separator) break; } #else - int remaining = length() - (int) (p - mUnicodeChars); location = NULL; while (location == NULL) { + int remaining = length() - (int) (p - mUnicodeChars); location = (UChar *) memmem(p, remaining * sizeof(UChar), separator->unicodeCharacters(), separator->length() * sizeof(UChar)); if (location == NULL) { break; |