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/dyn-string.c | |
parent | 0d03c52682bec990371b2f006e186641cf86f923 (diff) | |
download | binutils-20c4b12e937b20f0998bd25ad37c77145650e826.zip binutils-20c4b12e937b20f0998bd25ad37c77145650e826.tar.gz binutils-20c4b12e937b20f0998bd25ad37c77145650e826.tar.bz2 |
Synchronize libiberty sources (and include/demangle.h) with GCC master version
Diffstat (limited to 'libiberty/dyn-string.c')
-rw-r--r-- | libiberty/dyn-string.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libiberty/dyn-string.c b/libiberty/dyn-string.c index ea71118..8d2456b 100644 --- a/libiberty/dyn-string.c +++ b/libiberty/dyn-string.c @@ -277,7 +277,7 @@ dyn_string_insert_cstr (dyn_string_t dest, int pos, const char *src) for (i = dest->length; i >= pos; --i) dest->s[i + length] = dest->s[i]; /* Splice in the new stuff. */ - strncpy (dest->s + pos, src, length); + memcpy (dest->s + pos, src, length); /* Compute the new length. */ dest->length += length; return 1; |