diff --git a/changes.txt b/changes.txt index 24a01f33..2d9a97d4 100644 --- a/changes.txt +++ b/changes.txt @@ -1,5 +1,6 @@ -------------------------- Changes in 1.9 (not yet released) +- Bugfix: XML reader dropped last character in strings if there was a special character replacement for the second-last character. - Avoid allocating more than 16k on stack in OCT loader. Also avoid potential heap overwrites in there. - obj file loader now allows using mtl files with spaces in the filename. Note that this means it no longer handles obj files which have multiple mtl files behind the mtllib command. diff --git a/source/Irrlicht/CXMLReaderImpl.h b/source/Irrlicht/CXMLReaderImpl.h index 8fb87e17..d2b041b4 100644 --- a/source/Irrlicht/CXMLReaderImpl.h +++ b/source/Irrlicht/CXMLReaderImpl.h @@ -549,7 +549,7 @@ private: pos = origstr.findNext(L'&', pos); } - if (oldPos < (int)origstr.size()-1) + if (oldPos < (int)origstr.size()) newstr.append(origstr.subString(oldPos, origstr.size()-oldPos)); return newstr;