Jelajahi Sumber

Fix one-off in STEPFileEncoding causing UTF32 character decoding to fail.

Alexander Gessler 10 tahun lalu
induk
melakukan
78faabf0fa
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 1 1
      code/STEPFileEncoding.cpp

+ 1 - 1
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] == '\\') {