Specify the size of the memset

This commit is contained in:
Mike Lothian 2025-05-26 16:46:18 +01:00 committed by GitHub
parent 783d88a892
commit f179198b89
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -921,7 +921,7 @@ void FSTVolume::TrimCacheIfRequired(FSTCachedRawBlock** droppedRawBlock, FSTCach
void FSTVolume::DetermineUnhashedBlockIV(uint32 clusterIndex, uint32 blockIndex, uint8 ivOut[16])
{
memset(ivOut, 0, sizeof(ivOut));
memset(ivOut, 0, 16);
if(blockIndex == 0)
{
ivOut[0] = (uint8)(clusterIndex >> 8);