mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-01 19:30:13 -06: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:
committed by
Brad King
parent
4868921bc2
commit
d1751fbf17
@@ -68,7 +68,7 @@ void cmCursesLongMessageForm::UpdateStatusBar()
|
||||
}
|
||||
else
|
||||
{
|
||||
width = cmCursesMainForm::MAX_WIDTH;
|
||||
width = cmCursesMainForm::MAX_WIDTH-1;
|
||||
}
|
||||
|
||||
bar[width] = '\0';
|
||||
|
||||
Reference in New Issue
Block a user