Skip to content

Commit 5471f34

Browse files
committed
Fixed character encoding bug
1 parent 9679d45 commit 5471f34

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/ifcparse/IfcCharacterDecoder.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,7 @@ IfcCharacterEncoder::operator std::string() {
327327
UChar32 ch;
328328

329329
const char* source = str.c_str();
330-
const char* limit = &*str.end();
330+
const char* limit = source + str.size();
331331

332332
bool in_extended = false;
333333

@@ -364,4 +364,4 @@ IfcCharacterEncoder::operator std::string() {
364364
#ifdef HAVE_ICU
365365
UErrorCode IfcCharacterEncoder::status = U_ZERO_ERROR;
366366
UConverter* IfcCharacterEncoder::converter = 0;
367-
#endif
367+
#endif

0 commit comments

Comments
 (0)