From 73b38fce8d5ebb1a565c436adff631f4e439f103 Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Tue, 11 Mar 2008 14:08:53 +0000 Subject: [PATCH] md5.c (md5_process_bytes): Do not assume that memcpy will provide a return value. * md5.c (md5_process_bytes): Do not assume that memcpy will provide a return value. From-SVN: r133107 --- libiberty/ChangeLog | 5 +++++ libiberty/md5.c | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/libiberty/ChangeLog b/libiberty/ChangeLog index 0153ff7e1730..baa4bdabe222 100644 --- a/libiberty/ChangeLog +++ b/libiberty/ChangeLog @@ -1,3 +1,8 @@ +2008-03-11 Nick Clifton + + * md5.c (md5_process_bytes): Do not assume that memcpy will + provide a return value. + 2008-02-19 Ben Elliston PR other/12618 diff --git a/libiberty/md5.c b/libiberty/md5.c index 83e0beb339fa..9de9d88c22a5 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; } -- 2.39.2