diff --git a/thirdparty/fbx/src/fbxutil.cpp b/thirdparty/fbx/src/fbxutil.cpp index db6efcd3..8a56dd5f 100755 --- a/thirdparty/fbx/src/fbxutil.cpp +++ b/thirdparty/fbx/src/fbxutil.cpp @@ -99,7 +99,8 @@ uint64_t Reader::readUint64() std::string Reader::readString(uint32_t length) { - char buffer[length + 1]; + std::vector bufferVector(length + 1); + char *buffer = bufferVector.data(); buffer[length] = 0; if(length) read(buffer, length); return std::string(buffer);