BUG: don't let the messages get too big

This commit is contained in:
Bill Hoffman 2003-02-04 14:31:57 -05:00
parent d55033b4c1
commit 02722857bd
1 changed files with 1 additions and 1 deletions

View File

@ -144,7 +144,7 @@ void cmCursesLongMessageForm::Render(int, int, int, int)
int i=0;
form_driver(m_Form, REQ_BEG_FIELD);
while(msg[i] != '\0')
while(msg[i] != '\0' && i < 60000)
{
if (msg[i] == '\n' && msg[i+1] != '\0')
{