We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a421f48 commit 05442e3Copy full SHA for 05442e3
src/ifcwrap/IfcParseWrapper.i
@@ -403,10 +403,10 @@ private:
403
return f;
404
}
405
IfcParse::IfcFile* read(const std::string& data) {
406
+ char* copiedData = new char[data.length()];
407
+ memcpy(copiedData, data.c_str(), data.length());
408
IfcParse::IfcFile* f = new IfcParse::IfcFile();
- std::string copiedData;
- copiedData = data;
409
- f->Init((void *)copiedData.c_str(), data.length());
+ f->Init((void *)copiedData, data.length());
410
411
412
const char* schema_identifier() {
0 commit comments