diff options
author | Brad King <brad.king@kitware.com> | 2018-07-31 12:51:56 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2018-07-31 12:52:59 (GMT) |
commit | b6d116e240dc4ae2fb63d24de0efbdd891b74fe6 (patch) | |
tree | 2c0c8083dddee8f254d35b8840eeddd9250d80a2 /Source/cmakexbuild.cxx | |
parent | c31d9f1c30bddef091517a777936362a403b49b2 (diff) | |
download | CMake-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