From 78faabf0fab138cc0c3ff5cf0e719375bc08ca99 Mon Sep 17 00:00:00 2001 From: Alexander Gessler Date: Thu, 30 Apr 2015 02:37:35 +0200 Subject: [PATCH] Fix one-off in STEPFileEncoding causing UTF32 character decoding to fail. --- code/STEPFileEncoding.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/STEPFileEncoding.cpp b/code/STEPFileEncoding.cpp index 3d2ab4933..479aaae00 100644 --- a/code/STEPFileEncoding.cpp +++ b/code/STEPFileEncoding.cpp @@ -332,7 +332,7 @@ bool STEP::StringToUTF8(std::string& s) case '4': if (s[i+3] == '\\') { const size_t basei = i+4; - size_t j = basei, jend = s.size()-4; + size_t j = basei, jend = s.size()-3; for (; j < jend; ++j) { if (s[j] == '\\' && s[j] == 'X' && s[j] == '0' && s[j] == '\\') {