- use std::vector for the MemoryArrayReader

This commit is contained in:
Christoph Oelckers 2023-08-19 15:32:53 +02:00
commit def6bffdfc
6 changed files with 12 additions and 14 deletions

View file

@ -983,7 +983,7 @@ void md5Update(FileReader& file, MD5Context& md5, unsigned len)
while (len > 0)
{
t = min<unsigned>(len, sizeof(readbuf));
t = std::min<unsigned>(len, sizeof(readbuf));
len -= t;
t = (long)file.Read(readbuf, t);
md5.Update(readbuf, t);