Update of /cvsroot/mahogany/M/src/classes
In directory sc8-pr-cvs1:/tmp/cvs-serv19440/src/classes

Modified Files:
        MApplication.cpp 
Log Message:
fixed (relatively harmless) uninitialized memory reading bug

Index: MApplication.cpp
===================================================================
RCS file: /cvsroot/mahogany/M/src/classes/MApplication.cpp,v
retrieving revision 1.270
retrieving revision 1.271
diff -b -u -2 -r1.270 -r1.271
--- MApplication.cpp    23 Jun 2003 21:56:50 -0000      1.270
+++ MApplication.cpp    12 Jul 2003 19:00:15 -0000      1.271
@@ -1239,4 +1239,10 @@
    for ( size_t n = 0; n < WXSIZEOF(m_statusPanes); n++ )
    {
+      if ( m_statusPanes[n] == SF_ILLEGAL )
+      {
+         // no more (initialized) fields
+         break;
+      }
+
       if ( m_statusPanes[n] == field )
       {



-------------------------------------------------------
This SF.Net email sponsored by: Parasoft
Error proof Web apps, automate testing & more.
Download & eval WebKing and get a free book.
www.parasoft.com/bulletproofapps1
_______________________________________________
Mahogany-cvsupdates mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/mahogany-cvsupdates

Reply via email to