소스 검색

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]);
             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
     else { // Local file