From 8891bd61708c6c05e9588aea642a7dfe12fdc04b Mon Sep 17 00:00:00 2001 From: "jefft%netscape.com" Date: Tue, 31 Oct 2000 22:04:58 +0000 Subject: [PATCH] fixed bug 57614 - copy to Sent folder failed after message sent successfully, r=bienvenu, sr=alecf git-svn-id: svn://10.0.0.236/trunk@82108 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/mailnews/compose/src/nsMsgSend.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mozilla/mailnews/compose/src/nsMsgSend.cpp b/mozilla/mailnews/compose/src/nsMsgSend.cpp index 17ff62a9a5d..b9510bf4ca1 100644 --- a/mozilla/mailnews/compose/src/nsMsgSend.cpp +++ b/mozilla/mailnews/compose/src/nsMsgSend.cpp @@ -4087,7 +4087,8 @@ nsMsgComposeAndSend::MimeDoFCC(nsFileSpec *input_file, // while (! inputFile.eof()) { - if (!inputFile.readline(ibuffer, ibuffer_size)) + // check *ibuffer in case that ibuffer isn't big enough + if (!inputFile.readline(ibuffer, ibuffer_size) && *ibuffer == 0) { status = NS_ERROR_FAILURE; goto FAIL;