diff options
author | Brad King <brad.king@kitware.com> | 2018-03-13 17:41:52 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2018-03-13 17:42:00 (GMT) |
commit | 7c557e2227f446d1c265ac7b5aa8055e3f4ea713 (patch) | |
tree | 1befa4a5647684d56e291c547ca486a35a60cfae /Source/CursesDialog | |
parent | b2584ce069eae0d4b5a1cccf19295e5fde4c1082 (diff) | |
parent | 7899e5369126599aa05689b9ddfd233d2f317910 (diff) | |
download | CMake-7c557e2227f446d1c265ac7b5aa8055e3f4ea713.zip CMake-7c557e2227f446d1c265ac7b5aa8055e3f4ea713.tar.gz CMake-7c557e2227f446d1c265ac7b5aa8055e3f4ea713.tar.bz2 |
Merge topic 'ccmake-stack-smashing'
7899e53691 ccmake: fix status line buffer overflow on very wide terminals
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !1836
Diffstat (limited to 'Source/CursesDialog')
-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)); } } } |