diff --git a/mozilla/base/src/mac/nsFileSpecMac.cpp b/mozilla/base/src/mac/nsFileSpecMac.cpp index 8e7a56ccd44..dfa4da0ec28 100644 --- a/mozilla/base/src/mac/nsFileSpecMac.cpp +++ b/mozilla/base/src/mac/nsFileSpecMac.cpp @@ -671,9 +671,11 @@ void nsNativeFileSpec::operator += (const char* inRelativePath) mError = FSpGetDirectoryID(&mSpec, &dirID, &isDirectory); if (mError == noErr && isDirectory) { - mError = FSMakeFSSpec(mSpec.vRefNum, dirID, "\pG'day", *this); - if (mError == noErr) - SetLeafName(inRelativePath); + Str255 partialPath; + MacFileHelpers::PLstrcpy(partialPath, inRelativePath); + mError = FSMakeFSSpec(mSpec.vRefNum, dirID, partialPath, *this); + //if (mError == noErr) + // SetLeafName(inRelativePath); } } // nsNativeFileSpec::operator += diff --git a/mozilla/xpcom/io/nsFileSpecMac.cpp b/mozilla/xpcom/io/nsFileSpecMac.cpp index 8e7a56ccd44..dfa4da0ec28 100644 --- a/mozilla/xpcom/io/nsFileSpecMac.cpp +++ b/mozilla/xpcom/io/nsFileSpecMac.cpp @@ -671,9 +671,11 @@ void nsNativeFileSpec::operator += (const char* inRelativePath) mError = FSpGetDirectoryID(&mSpec, &dirID, &isDirectory); if (mError == noErr && isDirectory) { - mError = FSMakeFSSpec(mSpec.vRefNum, dirID, "\pG'day", *this); - if (mError == noErr) - SetLeafName(inRelativePath); + Str255 partialPath; + MacFileHelpers::PLstrcpy(partialPath, inRelativePath); + mError = FSMakeFSSpec(mSpec.vRefNum, dirID, partialPath, *this); + //if (mError == noErr) + // SetLeafName(inRelativePath); } } // nsNativeFileSpec::operator +=