From 38ce71d5a083a9e63b4c8be7363ec10f3fbda1b1 Mon Sep 17 00:00:00 2001 From: Kim Kulling Date: Thu, 19 May 2016 09:10:56 +0200 Subject: [PATCH] Update glTFAsset.inl closes https://github.com/assimp/assimp/issues/893: fix invalid memcpy usage. --- code/glTFAsset.inl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/glTFAsset.inl b/code/glTFAsset.inl index 6bfe288d3..d52c825c4 100644 --- a/code/glTFAsset.inl +++ b/code/glTFAsset.inl @@ -288,7 +288,7 @@ inline void Buffer::Read(Value& obj, Asset& r) } this->mData.reset(new uint8_t[dataURI.dataLength]); - memcmp(dataURI.data, this->mData.get(), dataURI.dataLength); + memcpy( this->mData.get(), dataURI.data, dataURI.dataLength ); } } else { // Local file