Index: src/libchcore/TString.cpp =================================================================== diff -u -N -ref57f6e998de7ed89a492d664c2c2656e357bf9f -r7ae0f5911d045f82328b6cfb88eccf67113708fa --- src/libchcore/TString.cpp (.../TString.cpp) (revision ef57f6e998de7ed89a492d664c2c2656e357bf9f) +++ src/libchcore/TString.cpp (.../TString.cpp) (revision 7ae0f5911d045f82328b6cfb88eccf67113708fa) @@ -694,6 +694,8 @@ stStartPos = stFindPos + stWithWhatLen; // offset by stWithWhatLen because we replaced text stCurrentLength = stCurrentLength + stWithWhatLen - stWhatLen; + + GetInternalStringData()->SetStringLength(stCurrentLength); } }