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:
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';
|
||||||
|
Loading…
x
Reference in New Issue
Block a user