summaryrefslogtreecommitdiff
path: root/libiberty/sha1.c
diff options
context:
space:
mode:
Diffstat (limited to 'libiberty/sha1.c')
-rw-r--r--libiberty/sha1.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libiberty/sha1.c b/libiberty/sha1.c
index e3d7f86e351..7d15d48d11d 100644
--- a/libiberty/sha1.c
+++ b/libiberty/sha1.c
@@ -258,7 +258,7 @@ sha1_process_bytes (const void *buffer, size_t len, struct sha1_ctx *ctx)
{
sha1_process_block (ctx->buffer, 64, ctx);
left_over -= 64;
- memcpy (ctx->buffer, &ctx->buffer[16], left_over);
+ memmove (ctx->buffer, &ctx->buffer[16], left_over);
}
ctx->buflen = left_over;
}