From b2a77caffc1cfe05b362d00d21ffc8b467860200 Mon Sep 17 00:00:00 2001 From: Jeremy Hu Date: Wed, 17 Oct 2018 12:35:15 +0800 Subject: [PATCH] Fix build --- thirdparty/fbx/src/fbxproperty.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/thirdparty/fbx/src/fbxproperty.cpp b/thirdparty/fbx/src/fbxproperty.cpp index ba154fc4..a9c50617 100755 --- a/thirdparty/fbx/src/fbxproperty.cpp +++ b/thirdparty/fbx/src/fbxproperty.cpp @@ -98,7 +98,8 @@ FBXProperty::FBXProperty(std::ifstream &input) if(decompressedBuffer == NULL) throw std::string("Malloc failed"); BufferAutoFree baf(decompressedBuffer); - uint8_t compressedBuffer[compressedLength]; + std::vector compressedBufferVector(compressedLength); + uint8_t *compressedBuffer = compressedBufferVector.data(); reader.read((char*)compressedBuffer, compressedLength); mz_ulong destLen = uncompressedLength;