Fixed overflow problem.
This commit is contained in:
parent
06ac353564
commit
0a33722a85
@ -357,14 +357,8 @@ void cmCursesMainForm::UpdateStatusBar()
|
|||||||
if (entry)
|
if (entry)
|
||||||
{
|
{
|
||||||
helpString = entry->m_HelpString.c_str();
|
helpString = entry->m_HelpString.c_str();
|
||||||
if (strlen(helpString) > 127)
|
strncpy(help, helpString, 127);
|
||||||
{
|
help[127] = '\0';
|
||||||
sprintf(help,"%127s", helpString);
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
sprintf(help,"%s", helpString);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user