diff options
author | madmaxoft <github@xoft.cz> | 2014-01-07 16:00:19 +0100 |
---|---|---|
committer | madmaxoft <github@xoft.cz> | 2014-01-07 17:07:49 +0100 |
commit | 39a1bcdea0a5897a7090748529e3b903918882ec (patch) | |
tree | bc8e5421a6365b56746284b0eb2732e7a4fca333 /src/StringUtils.cpp | |
parent | LuaState can push strings with embedded NULs. (diff) | |
download | cuberite-39a1bcdea0a5897a7090748529e3b903918882ec.tar cuberite-39a1bcdea0a5897a7090748529e3b903918882ec.tar.gz cuberite-39a1bcdea0a5897a7090748529e3b903918882ec.tar.bz2 cuberite-39a1bcdea0a5897a7090748529e3b903918882ec.tar.lz cuberite-39a1bcdea0a5897a7090748529e3b903918882ec.tar.xz cuberite-39a1bcdea0a5897a7090748529e3b903918882ec.tar.zst cuberite-39a1bcdea0a5897a7090748529e3b903918882ec.zip |
Diffstat (limited to 'src/StringUtils.cpp')
-rw-r--r-- | src/StringUtils.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/StringUtils.cpp b/src/StringUtils.cpp index 8d2352331..e6deb0705 100644 --- a/src/StringUtils.cpp +++ b/src/StringUtils.cpp @@ -612,7 +612,7 @@ AString StripColorCodes(const AString & a_Message) { AString res(a_Message); size_t idx = 0; - while (true) + for (;;) { idx = res.find("\xc2\xa7", idx); if (idx == AString::npos) |