Forráskód Böngészése

Update glTFAsset.inl

closes https://github.com/assimp/assimp/issues/893: fix invalid memcpy usage.
Kim Kulling 9 éve
szülő
commit
38ce71d5a0
1 módosított fájl, 1 hozzáadás és 1 törlés
  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