Avoid -Wstringop-truncation.
authorMartin Sebor <msebor@redhat.com>
Mon, 1 Feb 2021 15:58:31 +0000 (08:58 -0700)
committerMartin Sebor <msebor@redhat.com>
Mon, 1 Feb 2021 16:00:02 +0000 (09:00 -0700)
commit445d6db6490393bcbdbdf2b7dc76a9f1a15402bb
treeab1441d44919a9684c592ff0c23c14b721957903
parentd7bd009ab00412eaa60719d38b947d3df5c69b02
Avoid -Wstringop-truncation.

libiberty/ChangeLog:

* dyn-string.c (dyn_string_insert_cstr): Use memcpy instead of strncpy
to avoid -Wstringop-truncation.
libiberty/dyn-string.c