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
Родитель 5b1e0aaaa4
Коммит 4f971553a7
1 изменённых файлов: 3 добавлений и 1 удалений

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

@ -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