From ccffe84bfb1a5a400f6d69b380aa0489c6585ad5 Mon Sep 17 00:00:00 2001 From: "bsmedberg%covad.net" Date: Thu, 2 Feb 2006 19:24:22 +0000 Subject: [PATCH] Supplementary fix for bug 316177 - don't overrun the end of the command line git-svn-id: svn://10.0.0.236/trunk@188764 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/mailnews/compose/src/nsMsgComposeService.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mozilla/mailnews/compose/src/nsMsgComposeService.cpp b/mozilla/mailnews/compose/src/nsMsgComposeService.cpp index cb711f43ffb..626756c02ec 100644 --- a/mozilla/mailnews/compose/src/nsMsgComposeService.cpp +++ b/mozilla/mailnews/compose/src/nsMsgComposeService.cpp @@ -1385,7 +1385,7 @@ nsMsgComposeService::Handle(nsICommandLine* aCmdLine) rv = aCmdLine->GetLength(&count); NS_ENSURE_SUCCESS(rv, rv); - if (count >= found) { + if (count > found) { aCmdLine->GetArgument(found + 1, uristr); if (StringBeginsWith(uristr, NS_LITERAL_STRING("mailto:")) || StringBeginsWith(uristr, NS_LITERAL_STRING("to=")) ||