From c06a23d52e55f85354eb9e1d334a8af5b9ecac61 Mon Sep 17 00:00:00 2001 From: Jeremy Hu Date: Wed, 17 Oct 2018 12:53:18 +0800 Subject: [PATCH] Fix build --- thirdparty/fbx/src/fbxutil.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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);