diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2003-02-04 19:31:57 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2003-02-04 19:31:57 (GMT) |
commit | 02722857bd39229d32c93c0641a0203b485be1c6 (patch) | |
tree | c5bc0758fa6d466f1d6b243aa60feb6af6da86af /Source/CursesDialog | |
parent | d55033b4c122434cb031a33ce9c0d14ef43e150c (diff) | |
download | CMake-02722857bd39229d32c93c0641a0203b485be1c6.zip CMake-02722857bd39229d32c93c0641a0203b485be1c6.tar.gz CMake-02722857bd39229d32c93c0641a0203b485be1c6.tar.bz2 |
BUG: don't let the messages get too big
Diffstat (limited to 'Source/CursesDialog')
-rw-r--r-- | Source/CursesDialog/cmCursesLongMessageForm.cxx | 2 |
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') { |