浏览代码

Update glTFAsset.inl

closes https://github.com/assimp/assimp/issues/893: fix invalid memcpy usage.
Kim Kulling 9 年之前
父节点
当前提交
38ce71d5a0
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      code/glTFAsset.inl

+ 1 - 1
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