diff options
author | Thomas Jarosch <thomas.jarosch@intra2net.com> | 2011-09-01 19:59:57 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2011-09-02 15:15:40 (GMT) |
commit | d1751fbf17d2c0e945f696b920fe0cf2a8ad14b2 (patch) | |
tree | 6f6990cebc9472261413e1cdb1d9d25f5fde8e03 /Source/CursesDialog | |
parent | 4868921bc2b5ad85221d51d585bb2116a2826915 (diff) | |
download | CMake-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.cxx | 2 |
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'; |