Update glTFAsset.inl
authorKim Kulling <kimkulling@users.noreply.github.com>
Thu, 19 May 2016 07:10:56 +0000 (09:10 +0200)
committerKim Kulling <kimkulling@users.noreply.github.com>
Thu, 19 May 2016 07:10:56 +0000 (09:10 +0200)
closes https://github.com/assimp/assimp/issues/893: fix invalid memcpy usage.

code/glTFAsset.inl

index 6bfe288..d52c825 100644 (file)
@@ -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