diff --git a/3rdParty/hash-library/md5.cpp b/3rdParty/hash-library/md5.cpp index 9c54dd9bd5..2bcb186cfc 100644 --- a/3rdParty/hash-library/md5.cpp +++ b/3rdParty/hash-library/md5.cpp @@ -292,7 +292,7 @@ void MD5::processBuffer() if (paddedLength < BlockSize) addLength = m_buffer + paddedLength; else - addLength = extra + paddedLength - BlockSize; + addLength = extra + (paddedLength - BlockSize); // must be little endian *addLength++ = msgBits & 0xFF; msgBits >>= 8;