ditching old string api in preperation for new string stuff

This commit is contained in:
valeski%netscape.com 2000-04-01 00:14:31 +00:00
Родитель 971495476f
Коммит 8d9f80d627
1 изменённых файлов: 3 добавлений и 3 удалений

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

@ -871,15 +871,15 @@ nsFTPDirListingConv::DigestBufferLines(char *aBuffer, nsCAutoString &aString) {
// MODIFIED DATE // MODIFIED DATE
nsString lDate; nsString lDate;
nsStr::Initialize(lDate, eOneByte);
rv = mDateTimeFormat->FormatPRExplodedTime(mLocale, kDateFormatShort, kTimeFormatNoSeconds, &thisEntry->mMDTM, lDate); rv = mDateTimeFormat->FormatPRExplodedTime(mLocale, kDateFormatShort, kTimeFormatNoSeconds, &thisEntry->mMDTM, lDate);
if (NS_FAILED(rv)) { if (NS_FAILED(rv)) {
NS_DELETEXPCOM(thisEntry); NS_DELETEXPCOM(thisEntry);
return nsnull; return nsnull;
} }
char *escapedDate = nsEscape(lDate.GetBuffer(), url_Path); nsCAutoString theDate(lDate);
char *escapedDate = nsEscape(theDate.GetBuffer(), url_Path);
aString.Append(escapedDate); aString.Append(escapedDate);
nsAllocator::Free(escapedDate); nsAllocator::Free(escapedDate);