summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/md5.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/md5.c b/lib/md5.c
index 42fc6de05..7a01233e8 100644
--- a/lib/md5.c
+++ b/lib/md5.c
@@ -108,7 +108,7 @@ md5_stream (stream, resblock)
/* Read block. Take care for partial reads. */
do
{
- n = fread (buffer, 1, BLOCKSIZE - sum, stream);
+ n = fread (buffer + sum, 1, BLOCKSIZE - sum, stream);
sum += n;
}