Update of /cvsroot/mahogany/M/src/modules/viewflt
In directory sc8-pr-cvs1:/tmp/cvs-serv32464/src/modules/viewflt

Modified Files:
        PGP.cpp Trailer.cpp 
Log Message:
1. Don't go past the end of a message to find the beginning of a PGP signature.
2. Don't go past the beginning of the message to find a trailer sequence


Index: PGP.cpp
===================================================================
RCS file: /cvsroot/mahogany/M/src/modules/viewflt/PGP.cpp,v
retrieving revision 1.2
retrieving revision 1.3
diff -b -u -2 -r1.2 -r1.3
--- PGP.cpp     1 Dec 2002 02:47:35 -0000       1.2
+++ PGP.cpp     2 Dec 2002 12:25:12 -0000       1.3
@@ -103,4 +103,6 @@
       if ( start )
          start++; // skip '\n' itself
+      else
+         break; // no more text
    }
 

Index: Trailer.cpp
===================================================================
RCS file: /cvsroot/mahogany/M/src/modules/viewflt/Trailer.cpp,v
retrieving revision 1.5
retrieving revision 1.6
diff -b -u -2 -r1.5 -r1.6
--- Trailer.cpp 1 Dec 2002 02:41:08 -0000       1.5
+++ Trailer.cpp 2 Dec 2002 12:25:12 -0000       1.6
@@ -101,5 +101,5 @@
 
       // (b) simply (and faster) if it's not a delimiter line anyhow
-      while ( *pc != '\n' && pc >= start )
+      while ( *pc != '\n' && pc > start )
       {
          pc--;



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Mahogany-cvsupdates mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/mahogany-cvsupdates

Reply via email to