]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - libiberty/dyn-string.c
Synchronize libiberty sources (and include/demangle.h) with GCC master version
[thirdparty/binutils-gdb.git] / libiberty / dyn-string.c
index ea711182ca576ad186e2455ac4c9c1e1e13b27d0..8d2456b86c81ef5ad00bc4b4ac14b4bb1e711b19 100644 (file)
@@ -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;