Update glTFAsset.inl

closes https://github.com/assimp/assimp/issues/893: fix invalid memcpy usage.
pull/903/head
Kim Kulling 2016-05-19 09:10:56 +02:00
parent c9c6fda28e
commit 38ce71d5a0
1 changed files with 1 additions and 1 deletions

View 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