Fix the BeOS implementation of Normalize().

Thanks to Hiromasa Kato <hiro@eng.iastate.edu> for the patch.
Bug #53014 r=cls@seawood.org sr=scc@mozilla.org
This commit is contained in:
cls@seawood.org
2000-11-28 01:43:09 +00:00
parent 4369e99160
commit 1cb25dc563

View File

@@ -472,8 +472,10 @@ nsLocalFile::Normalize()
BEntry be_e((const char *)mPath, true);
BPath be_p;
status_t err;
if ((err = be_e.GetPath(&be_p)) == B_OK)
if ((err = be_e.GetPath(&be_p)) == B_OK) {
resolved_path_ptr = be_p.Path();
PL_strncpyz(resolved_path, resolved_path_ptr, PATH_MAX - 1);
}
#else
resolved_path_ptr = realpath((const char *)mPath, resolved_path);
#endif