[NFC][AIX][XCOFF] fixed compile warning on the strncpy.
authordiggerlin <digger.llvm@gmail.com>
Fri, 6 Dec 2019 17:22:28 +0000 (12:22 -0500)
committerdiggerlin <digger.llvm@gmail.com>
Fri, 6 Dec 2019 17:22:28 +0000 (12:22 -0500)
commitc04b63eccd5f9fc19da410caea88d29f11e9886c
tree2166ad0bdd12133423dbe857c262cecee2da7267
parentb6f9d7b8fb2eb6b78ac93ebd5ea4e36c04469285
[NFC][AIX][XCOFF] fixed compile warning on the strncpy.

SUMMARY:
There is warning when compile the file XCOFFObjectWriter.cpp
/srv/llvm-buildbot-srcatch/llvm-build-dir/openmp-gcc-x86_64-linux-debian/llvm.src/llvm/lib/MC/XCOFFObjectWriter.cpp:414:17: warning: 'char* strncpy(char*, const char*, size_t)' specified bound 8 equals destination size [-Wstringop-truncation]

The patch fixed the warning.

Reviewer: daltenty

Differential Revision: https://reviews.llvm.org/D71119
llvm/lib/MC/XCOFFObjectWriter.cpp