summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2003-02-04 19:31:57 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2003-02-04 19:31:57 (GMT)
commit02722857bd39229d32c93c0641a0203b485be1c6 (patch)
treec5bc0758fa6d466f1d6b243aa60feb6af6da86af /Source
parentd55033b4c122434cb031a33ce9c0d14ef43e150c (diff)
downloadCMake-02722857bd39229d32c93c0641a0203b485be1c6.zip
CMake-02722857bd39229d32c93c0641a0203b485be1c6.tar.gz
CMake-02722857bd39229d32c93c0641a0203b485be1c6.tar.bz2
BUG: don't let the messages get too big
Diffstat (limited to 'Source')
-rw-r--r--Source/CursesDialog/cmCursesLongMessageForm.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/CursesDialog/cmCursesLongMessageForm.cxx b/Source/CursesDialog/cmCursesLongMessageForm.cxx
index 76bd13a..0e454f2 100644
--- a/Source/CursesDialog/cmCursesLongMessageForm.cxx
+++ b/Source/CursesDialog/cmCursesLongMessageForm.cxx
@@ -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')
{