diff --git a/mailnews/local/tests/mailbox/nsMsgMailboxParserStub.cpp b/mailnews/local/tests/mailbox/nsMsgMailboxParserStub.cpp index 8ed43746b42..914c64ebcea 100644 --- a/mailnews/local/tests/mailbox/nsMsgMailboxParserStub.cpp +++ b/mailnews/local/tests/mailbox/nsMsgMailboxParserStub.cpp @@ -82,9 +82,7 @@ NS_IMETHODIMP nsMsgMailboxParserStub::OnStatus(nsIURL* aURL, const PRUnichar* aM { printf("\n+++ nsMsgMailboxParserStub::OnStatus: "); nsString str(aMsg); - char* c = str.ToNewCString(); - fputs(c, stdout); - delete [] c; + fputs(nsAutoCString(str), stdout); fputs("\n", stdout); return 0;