diff options
author | Brad King <brad.king@kitware.com> | 2018-03-13 17:40:17 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2018-03-13 17:40:17 (GMT) |
commit | a54b56a10bc1d03bd6e56b76f0098fb1835094c9 (patch) | |
tree | 16ecbc7aad2ecf188fa8ada162b09c2398b70f10 /Source/CursesDialog/cmCursesMainForm.cxx | |
parent | bab82b0935e543ceceddf8e339dd026d201692fe (diff) | |
parent | 7899e5369126599aa05689b9ddfd233d2f317910 (diff) | |
download | CMake-a54b56a10bc1d03bd6e56b76f0098fb1835094c9.zip CMake-a54b56a10bc1d03bd6e56b76f0098fb1835094c9.tar.gz CMake-a54b56a10bc1d03bd6e56b76f0098fb1835094c9.tar.bz2 |
Merge branch 'ccmake-stack-smashing' into release-3.11
Merge-request: !1836
Diffstat (limited to 'Source/CursesDialog/cmCursesMainForm.cxx')
-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)); } } } |