summaryrefslogtreecommitdiffstats
path: root/Source/cmakexbuild.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2018-07-31 12:51:56 (GMT)
committerBrad King <brad.king@kitware.com>2018-07-31 12:52:59 (GMT)
commitb6d116e240dc4ae2fb63d24de0efbdd891b74fe6 (patch)
tree2c0c8083dddee8f254d35b8840eeddd9250d80a2 /Source/cmakexbuild.cxx
parentc31d9f1c30bddef091517a777936362a403b49b2 (diff)
downloadCMake-b6d116e240dc4ae2fb63d24de0efbdd891b74fe6.zip
CMake-b6d116e240dc4ae2fb63d24de0efbdd891b74fe6.tar.gz
CMake-b6d116e240dc4ae2fb63d24de0efbdd891b74fe6.tar.bz2
cmCursesLongMessageForm: Avoid -Wstringop-overflow warning
We use `strncpy` to copy the title up to a maximum number of characters. GCC 8's `-Wstringop-overflow` warns that the length depends on the input length because it fails to recognize that we are bounding it to the buffer size too. Update the code to hide the dependence on the input length.
Diffstat (limited to 'Source/cmakexbuild.cxx')
0 files changed, 0 insertions, 0 deletions