Skip to content

Commit 040ee2b

Browse files
authored
Applied stbrumme#15
1 parent 8c42d9f commit 040ee2b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/md5.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,7 @@ void MD5::processBuffer()
298298
if (paddedLength < BlockSize)
299299
addLength = m_buffer + paddedLength;
300300
else
301-
addLength = extra + paddedLength - BlockSize;
301+
addLength = extra + (paddedLength - BlockSize);
302302

303303
// must be little endian
304304
*addLength++ = msgBits & 0xFF; msgBits >>= 8;

0 commit comments

Comments
 (0)