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
1 changed files with 1 additions and 1 deletions

View File

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