From beb9ea4994bd2abf40e541e293f292512f479ff9 Mon Sep 17 00:00:00 2001 From: "mscott%netscape.com" Date: Fri, 2 Apr 1999 02:56:57 +0000 Subject: [PATCH] Properly add the leaf name to the directory path for the Inbox folder. git-svn-id: svn://10.0.0.236/trunk@26002 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/mailnews/local/src/nsPop3Sink.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mozilla/mailnews/local/src/nsPop3Sink.cpp b/mozilla/mailnews/local/src/nsPop3Sink.cpp index b6e18dbb288..fba75421491 100644 --- a/mozilla/mailnews/local/src/nsPop3Sink.cpp +++ b/mozilla/mailnews/local/src/nsPop3Sink.cpp @@ -118,11 +118,12 @@ nsPop3Sink::SetMailAccountURL(const char* urlString) nsresult nsPop3Sink::BeginMailDelivery(PRBool* aBool) { - char *path = PR_smprintf("%s\\Inbox", m_mailDirectory); #ifdef DEBUG m_fileCounter++; #endif - nsFileSpec fileSpec(path); + nsFileSpec fileSpec(m_mailDirectory); + fileSpec += "Inbox"; + printf("\nDirectory: %s\n", (const char *) fileSpec); m_outFileStream = new nsOutputFileStream(fileSpec, PR_WRONLY | PR_CREATE_FILE | PR_APPEND); @@ -132,7 +133,6 @@ nsPop3Sink::BeginMailDelivery(PRBool* aBool) return NS_ERROR_OUT_OF_MEMORY; nsresult rv = m_newMailParser->Init(nsnull, fileSpec); if (NS_FAILED(rv)) return rv; - PR_FREEIF(path); #ifdef DEBUG printf("Begin mail message delivery.\n");