Fix build

master
Jeremy Hu 2018-10-17 12:35:15 +08:00
parent 660e3d6a58
commit b2a77caffc
1 changed files with 2 additions and 1 deletions

View File

@ -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<uint8_t> compressedBufferVector(compressedLength);
uint8_t *compressedBuffer = compressedBufferVector.data();
reader.read((char*)compressedBuffer, compressedLength);
mz_ulong destLen = uncompressedLength;