From 781324a487c87bfac5143b61be69f15ce232dfc3 Mon Sep 17 00:00:00 2001 From: "scc%mozilla.org" Date: Thu, 29 Jun 2000 22:04:22 +0000 Subject: [PATCH] bug #17294, fixed a dogfood+ assert described in this bug, though unrelated to the underlying problem 17294 is really about. r=BenB; a=jar --- mailnews/mime/src/mimetpla.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mailnews/mime/src/mimetpla.cpp b/mailnews/mime/src/mimetpla.cpp index 49b4afde511..659e0f7622b 100644 --- a/mailnews/mime/src/mimetpla.cpp +++ b/mailnews/mime/src/mimetpla.cpp @@ -401,7 +401,8 @@ MimeInlineTextPlain_parse_line (char *line, PRInt32 length, MimeObject *obj) // recognize signature - if (lineSourceStr.First() == '-' + if ((lineSourceStr.Length() >= 4) + && lineSourceStr.First() == '-' && lineSourceStr.EqualsWithConversion("-- ", PR_FALSE, 3) && (lineSourceStr[3] == '\r' || lineSourceStr[3] == '\n') ) {