PR bootstrap/82948 - prefix.c:202:15: error: 'char* strncpy(char*, const char*,
authorMartin Sebor <msebor@redhat.com>
Sat, 11 Nov 2017 17:43:48 +0000 (17:43 +0000)
committerMartin Sebor <msebor@gcc.gnu.org>
Sat, 11 Nov 2017 17:43:48 +0000 (10:43 -0700)
commit42c544b0356f01207f596fcb5a07e04fd3f61e71
tree448f61aafe12c45fc965b255e7c31e604b67326a
parentaead609fc1ad1dae117973dce7fd2a5ff196cec3
PR bootstrap/82948 - prefix.c:202:15: error: 'char* strncpy(char*, const char*,

   size_t)' destination unchanged after copying no bytes

gcc/ChangeLog:

PR bootstrap/82948
* prefic.c (translate_name): Replace strncpy with memcpy to
avoid -Wstringop-truncation.

From-SVN: r254658
gcc/ChangeLog
gcc/prefix.c