From 242888cf4fd786b410a19ebf59787d081adaac36 Mon Sep 17 00:00:00 2001 From: "mscott%netscape.com" Date: Mon, 8 Mar 1999 19:53:10 +0000 Subject: [PATCH] When setting the byte range based on the message size subtract one byte (this gives it the proper byte range in the file...). --- mailnews/local/src/nsMailboxUrl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mailnews/local/src/nsMailboxUrl.cpp b/mailnews/local/src/nsMailboxUrl.cpp index f006adc7cae..57f39bfdeee 100644 --- a/mailnews/local/src/nsMailboxUrl.cpp +++ b/mailnews/local/src/nsMailboxUrl.cpp @@ -289,7 +289,7 @@ NS_METHOD nsMailboxUrl::SetURLInfo(URL_Struct *URL_s) if (m_mailboxAction == nsMailboxActionDisplayMessage) { // set the byte field range for the url struct... - char * byteRange = PR_smprintf("bytes=%d-%d", m_messageKey, m_messageKey+m_messageSize); + char * byteRange = PR_smprintf("bytes=%d-%d", m_messageKey, m_messageKey+m_messageSize - 1); m_URL_s->range_header = byteRange; }