mirror of
https://github.com/Kitware/CMake.git
synced 2026-04-28 18:09:42 -05: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
|
else
|
||||||
{
|
{
|
||||||
width = cmCursesMainForm::MAX_WIDTH;
|
width = cmCursesMainForm::MAX_WIDTH-1;
|
||||||
}
|
}
|
||||||
|
|
||||||
bar[width] = '\0';
|
bar[width] = '\0';
|
||||||
|
|||||||
Reference in New Issue
Block a user