summaryrefslogtreecommitdiffstats
path: root/Source/CursesDialog
diff options
context:
space:
mode:
authorThomas Jarosch <thomas.jarosch@intra2net.com>2011-09-01 19:59:57 (GMT)
committerBrad King <brad.king@kitware.com>2011-09-02 15:15:40 (GMT)
commitd1751fbf17d2c0e945f696b920fe0cf2a8ad14b2 (patch)
tree6f6990cebc9472261413e1cdb1d9d25f5fde8e03 /Source/CursesDialog
parent4868921bc2b5ad85221d51d585bb2116a2826915 (diff)
downloadCMake-d1751fbf17d2c0e945f696b920fe0cf2a8ad14b2.zip
CMake-d1751fbf17d2c0e945f696b920fe0cf2a8ad14b2.tar.gz
CMake-d1751fbf17d2c0e945f696b920fe0cf2a8ad14b2.tar.bz2
ccmake: Fix off-by-one memory access error
Credit goes to "cppcheck". Signed-off-by: Thomas Jarosch <thomas.jarosch@intra2net.com>
Diffstat (limited to 'Source/CursesDialog')
-rw-r--r--Source/CursesDialog/cmCursesLongMessageForm.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/CursesDialog/cmCursesLongMessageForm.cxx b/Source/CursesDialog/cmCursesLongMessageForm.cxx
index 1c48d8c..0e2cd22 100644
--- a/Source/CursesDialog/cmCursesLongMessageForm.cxx
+++ b/Source/CursesDialog/cmCursesLongMessageForm.cxx
@@ -68,7 +68,7 @@ void cmCursesLongMessageForm::UpdateStatusBar()
}
else
{
- width = cmCursesMainForm::MAX_WIDTH;
+ width = cmCursesMainForm::MAX_WIDTH-1;
}
bar[width] = '\0';