fix for unix filepicker not coming up correctly (bug #38810)
git-svn-id: svn://10.0.0.236/trunk@69096 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -271,8 +271,10 @@ nsLocalFile::InitWithPath(const char *filePath)
|
||||
|
||||
int len = strlen(filePath);
|
||||
char* name = (char*) nsAllocator::Clone( filePath, len+1 );
|
||||
if(name[len-1] == '/')
|
||||
name[len-1] = '\0';
|
||||
if (name[len-1] == '/') {
|
||||
if (len != 1)
|
||||
name[len-1] = '\0';
|
||||
}
|
||||
|
||||
mPath = name;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user