From 41e3c3eac61dd8905d1fe4247ad5456ab1ff6402 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 --- mailnews/compose/src/nsMsgComposeService.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mailnews/compose/src/nsMsgComposeService.cpp b/mailnews/compose/src/nsMsgComposeService.cpp index cb711f43ffbe..626756c02ec0 100644 --- a/mailnews/compose/src/nsMsgComposeService.cpp +++ b/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=")) ||