summaryrefslogtreecommitdiffstats
path: root/Source/CursesDialog/cmCursesMainForm.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2018-03-13 17:40:17 (GMT)
committerBrad King <brad.king@kitware.com>2018-03-13 17:40:17 (GMT)
commita54b56a10bc1d03bd6e56b76f0098fb1835094c9 (patch)
tree16ecbc7aad2ecf188fa8ada162b09c2398b70f10 /Source/CursesDialog/cmCursesMainForm.cxx
parentbab82b0935e543ceceddf8e339dd026d201692fe (diff)
parent7899e5369126599aa05689b9ddfd233d2f317910 (diff)
downloadCMake-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.cxx2
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));
}
}
}