mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-07 22:59:56 -05:00
Fixed overflow problem.
This commit is contained in:
@@ -357,14 +357,8 @@ void cmCursesMainForm::UpdateStatusBar()
|
||||
if (entry)
|
||||
{
|
||||
helpString = entry->m_HelpString.c_str();
|
||||
if (strlen(helpString) > 127)
|
||||
{
|
||||
sprintf(help,"%127s", helpString);
|
||||
}
|
||||
else
|
||||
{
|
||||
sprintf(help,"%s", helpString);
|
||||
}
|
||||
strncpy(help, helpString, 127);
|
||||
help[127] = '\0';
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user