aboutsummaryrefslogtreecommitdiff
path: root/libiberty/sha1.c
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2021-07-03 14:00:33 +0100
committerNick Clifton <nickc@redhat.com>2021-07-03 14:00:33 +0100
commit20c4b12e937b20f0998bd25ad37c77145650e826 (patch)
treebcc05850ae7ed90cedb0368ab7f8b3a88a703500 /libiberty/sha1.c
parent0d03c52682bec990371b2f006e186641cf86f923 (diff)
downloadgdb-20c4b12e937b20f0998bd25ad37c77145650e826.zip
gdb-20c4b12e937b20f0998bd25ad37c77145650e826.tar.gz
gdb-20c4b12e937b20f0998bd25ad37c77145650e826.tar.bz2
Synchronize libiberty sources (and include/demangle.h) with GCC master version
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 e3d7f86..7d15d48 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;
}