diff options
author | Jim Meyering <meyering@redhat.com> | 2008-03-15 16:06:44 +0100 |
---|---|---|
committer | Jim Meyering <meyering@redhat.com> | 2008-03-15 16:06:44 +0100 |
commit | a20403123cca92c457751f335d502bdf1c36b6f7 (patch) | |
tree | 645022ed0c5d0b046f03dd3b1b4da1c3469cd79f /lib/md5.c | |
parent | fdc2a18856ce9690d412a7c357c72f69832ec54c (diff) | |
download | gnulib-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.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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], |