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
This commit is contained in:
Nick Clifton 2008-03-11 14:08:53 +00:00 committed by Nick Clifton
parent ab669042dc
commit 73b38fce8d
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2008-03-11 Nick Clifton <nickc@redhat.com>
* md5.c (md5_process_bytes): Do not assume that memcpy will
provide a return value.
2008-02-19 Ben Elliston <bje@au.ibm.com>
PR other/12618

View File

@ -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;
}