summaryrefslogtreecommitdiff
path: root/lib/md5.c
diff options
context:
space:
mode:
authorJim Meyering <meyering@redhat.com>2008-03-15 16:06:44 +0100
committerJim Meyering <meyering@redhat.com>2008-03-15 16:06:44 +0100
commita20403123cca92c457751f335d502bdf1c36b6f7 (patch)
tree645022ed0c5d0b046f03dd3b1b4da1c3469cd79f /lib/md5.c
parentfdc2a18856ce9690d412a7c357c72f69832ec54c (diff)
downloadgnulib-a20403123cca92c457751f335d502bdf1c36b6f7.tar.gz
Undo last change.
* lib/sha1.c, lib/md5.c: 63 != ~63. Reported by Andreas Schwab.
Diffstat (limited to 'lib/md5.c')
-rw-r--r--lib/md5.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/md5.c b/lib/md5.c
index ce02a26211..2213dc1206 100644
--- a/lib/md5.c
+++ b/lib/md5.c
@@ -230,9 +230,9 @@ md5_process_bytes (const void *buffer, size_t len, struct md5_ctx *ctx)
if (ctx->buflen > 64)
{
- ctx->buflen &= 63;
- md5_process_block (ctx->buffer, ctx->buflen, ctx);
+ md5_process_block (ctx->buffer, ctx->buflen & ~63, ctx);
+ ctx->buflen &= 63;
/* The regions in the following copy operation cannot overlap. */
memcpy (ctx->buffer,
&((char *) ctx->buffer)[(left_over + add) & ~63],