diff options
author | Brad King <brad.king@kitware.com> | 2018-03-13 17:39:32 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2018-03-13 17:39:32 (GMT) |
commit | 354a33fdf3b6618cbb81772ea8647761b9c3c1ce (patch) | |
tree | 23a45c2ef0e08883e1701040c7f49e0af1a6c1d5 /Source | |
parent | 760c6c08a5f5ba6390f40a7dddb499bd7f16c702 (diff) | |
parent | 7899e5369126599aa05689b9ddfd233d2f317910 (diff) | |
download | CMake-354a33fdf3b6618cbb81772ea8647761b9c3c1ce.zip CMake-354a33fdf3b6618cbb81772ea8647761b9c3c1ce.tar.gz CMake-354a33fdf3b6618cbb81772ea8647761b9c3c1ce.tar.bz2 |
Merge branch 'ccmake-stack-smashing' into release-3.10
Merge-request: !1836
Diffstat (limited to 'Source')
-rw-r--r-- | Source/CursesDialog/cmCursesMainForm.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/CursesDialog/cmCursesMainForm.cxx b/Source/CursesDialog/cmCursesMainForm.cxx index dbd024d..4a9dc47 100644 --- a/Source/CursesDialog/cmCursesMainForm.cxx +++ b/Source/CursesDialog/cmCursesMainForm.cxx @@ -475,7 +475,7 @@ void cmCursesMainForm::UpdateStatusBar(const char* message) strncpy(bar + curFieldLen + 2, help, width - curFieldLen - 2); if (curFieldLen + helpLen + 2 < width) { memset(bar + curFieldLen + helpLen + 2, ' ', - width - curFieldLen + helpLen + 2); + width - (curFieldLen + helpLen + 2)); } } } |