summaryrefslogtreecommitdiff
path: root/libiberty/md5.c
diff options
context:
space:
mode:
authorDJ Delorie <dj@delorie.com>2008-03-11 16:11:55 +0000
committerDJ Delorie <dj@delorie.com>2008-03-11 16:11:55 +0000
commit1e75d5d21f297194f6ee4abdb34a57a6e9179366 (patch)
tree579df199caf9a45c5f8a6e704e8e4e06a4b49f77 /libiberty/md5.c
parent27016e367aa423c82186bffe2732df7d99f9ac7b (diff)
downloadgdb-1e75d5d21f297194f6ee4abdb34a57a6e9179366.tar.gz
merge from gcc
Diffstat (limited to 'libiberty/md5.c')
-rw-r--r--libiberty/md5.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libiberty/md5.c b/libiberty/md5.c
index 83e0beb339f..9de9d88c22a 100644
--- a/libiberty/md5.c
+++ b/libiberty/md5.c
@@ -234,7 +234,8 @@ md5_process_bytes (const void *buffer, size_t len, struct md5_ctx *ctx)
if (UNALIGNED_P (buffer))
while (len > 64)
{
- md5_process_block (memcpy (ctx->buffer, buffer, 64), 64, ctx);
+ memcpy (ctx->buffer, buffer, 64);
+ md5_process_block (ctx->buffer, 64, ctx);
buffer = (const char *) buffer + 64;
len -= 64;
}