diff options
author | Nick Clifton <nickc@redhat.com> | 2008-03-11 14:08:53 +0000 |
---|---|---|
committer | Nick Clifton <nickc@gcc.gnu.org> | 2008-03-11 14:08:53 +0000 |
commit | 73b38fce8d5ebb1a565c436adff631f4e439f103 (patch) | |
tree | 3b30afce6b388b00b03acae57b6a7581a6d0982e /libiberty/md5.c | |
parent | ab669042dc81955b888dd05ab9ff23a4b7e8c8ba (diff) | |
download | gcc-73b38fce8d5ebb1a565c436adff631f4e439f103.tar.gz |
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
Diffstat (limited to 'libiberty/md5.c')
-rw-r--r-- | libiberty/md5.c | 3 |
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; } |