From 8068ff2f399c14caaf553706c89b098cd3fa737b Mon Sep 17 00:00:00 2001 From: "sspitzer%netscape.com" Date: Tue, 21 Dec 1999 21:59:15 +0000 Subject: [PATCH] fix for #22109. r=putterman, a=sdagley the problem was we were appending "/" to the path to the server by using AppendRelativeUnixPath. this leaf us with ///newsgroup. --- mailnews/base/util/nsMsgFolder.cpp | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/mailnews/base/util/nsMsgFolder.cpp b/mailnews/base/util/nsMsgFolder.cpp index 9547ad357cfc..aadf0271b5d7 100644 --- a/mailnews/base/util/nsMsgFolder.cpp +++ b/mailnews/base/util/nsMsgFolder.cpp @@ -245,7 +245,7 @@ nsMsgFolder::FindSubFolder(const char *subFolderName, nsIFolder **aFolder) return rv; // XXX use necko here - nsCAutoString uri; + nsCAutoString uri(""); uri.Append(mURI); uri.Append('/'); @@ -518,9 +518,9 @@ nsMsgFolder::parseURI(PRBool needServer) // (remove leading / and add .sbd to first n-1 folders) // to be appended onto the server's path - nsCAutoString newPath; + nsCAutoString newPath(""); - char *newStr; + char *newStr=nsnull; char *token = nsCRT::strtok(NS_CONST_CAST(char *,(const char*)urlPath), "/", &newStr); @@ -531,9 +531,11 @@ nsMsgFolder::parseURI(PRBool needServer) if (nsCRT::strcmp(token, "")==0) continue; // add .sbd onto the previous path - if (haveFirst) newPath+=".sbd"; - - newPath += "/"; + if (haveFirst) { + newPath+=".sbd"; + newPath += "/"; + } + newPath += token; haveFirst=PR_TRUE;