This commit is contained in:
bienvenu%netscape.com 2002-01-27 02:32:36 +00:00
Родитель 15b6ce8467
Коммит 4feb42d0de
2 изменённых файлов: 10 добавлений и 10 удалений

Просмотреть файл

@ -415,7 +415,7 @@ char *nsIMAPNamespaceList::AllocateCanonicalFolderName(const char *onlineFolderN
if (delimiter)
canonicalPath = nsImapUrl::ReplaceCharsInCopiedString(onlineFolderName, delimiter , '/');
else
canonicalPath = strdup(onlineFolderName);
canonicalPath = PL_strdup(onlineFolderName);
// eat any escape characters for escaped dir separators
if (canonicalPath)
@ -452,7 +452,7 @@ char* nsIMAPNamespaceList::GetFolderNameWithoutNamespace(nsIMAPNamespace *namesp
char *retFolderName = nsnull;
if (!PL_strcasecmp(canonicalFolderName, "INBOX"))
return strdup(canonicalFolderName);
return PL_strdup(canonicalFolderName);
// convert the canonical path to the online path
char *convertedFolderName = nsIMAPNamespaceList::AllocateServerFolderName(canonicalFolderName, namespaceForFolder->GetDelimiter());
@ -546,7 +546,7 @@ char *nsIMAPNamespaceList::GetFolderOwnerNameFromPath(nsIMAPNamespace *namespace
{
*nextDelimiter = 0;
}
rv = strdup(owner);
rv = PL_strdup(owner);
}
PR_Free(convertedFolderName);
}

Просмотреть файл

@ -3068,18 +3068,18 @@ nsresult nsImapMailFolder::GetOwnersOnlineFolderName(char **retName)
const char *relativeFolder = where + strlen(user) + 1;
if (!relativeFolder) // root of this user's personal namespace
{
*retName = strdup("");
*retName = PL_strdup("");
return NS_OK;
}
else
{
*retName = strdup(relativeFolder);
*retName = PL_strdup(relativeFolder);
return NS_OK;
}
}
}
*retName = strdup(onlineName.get());
*retName = PL_strdup(onlineName.get());
return NS_OK;
}
else if (!(mFlags & MSG_FOLDER_FLAG_IMAP_PUBLIC))
@ -3089,7 +3089,7 @@ nsresult nsImapMailFolder::GetOwnersOnlineFolderName(char **retName)
}
else
*retName = strdup(onlineName.get());
*retName = PL_strdup(onlineName.get());
return NS_OK;
}
@ -4871,11 +4871,11 @@ PRBool nsMsgIMAPFolderACL::SetFolderRightsForUser(const char *userName, const ch
char *ourUserName = nsnull;
if (!userName)
ourUserName = strdup(myUserName.get());
ourUserName = PL_strdup(myUserName.get());
else
ourUserName = strdup(userName);
ourUserName = PL_strdup(userName);
char *rightsWeOwn = strdup(rights);
char *rightsWeOwn = PL_strdup(rights);
nsCStringKey hashKey(ourUserName);
if (rightsWeOwn && ourUserName)
{