diff options
author | Nick Clifton <nickc@redhat.com> | 2021-07-03 14:00:33 +0100 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2021-07-03 14:00:33 +0100 |
commit | 20c4b12e937b20f0998bd25ad37c77145650e826 (patch) | |
tree | bcc05850ae7ed90cedb0368ab7f8b3a88a703500 /libiberty/sha1.c | |
parent | 0d03c52682bec990371b2f006e186641cf86f923 (diff) | |
download | fsf-binutils-gdb-20c4b12e937b20f0998bd25ad37c77145650e826.zip fsf-binutils-gdb-20c4b12e937b20f0998bd25ad37c77145650e826.tar.gz fsf-binutils-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.c | 2 |
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; } |