1
0
mirror of https://github.com/Kitware/CMake.git synced 2025-10-14 02:08:27 +08:00

ccmake: Fix off-by-one memory access error

Credit goes to "cppcheck".

Signed-off-by: Thomas Jarosch <thomas.jarosch@intra2net.com>
This commit is contained in:
Thomas Jarosch
2011-09-01 21:59:57 +02:00
committed by Brad King
parent 4868921bc2
commit d1751fbf17

View File

@@ -68,7 +68,7 @@ void cmCursesLongMessageForm::UpdateStatusBar()
}
else
{
width = cmCursesMainForm::MAX_WIDTH;
width = cmCursesMainForm::MAX_WIDTH-1;
}
bar[width] = '\0';