Fixes STR#3500 - "Must type two leading slashes to enter an absolute path"
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@13094 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
parent
71d7a9db79
commit
cf5f3fbca2
@ -883,8 +883,8 @@ Fl_File_Chooser::fileNameCB()
|
||||
strlcpy(matchname, file, sizeof(matchname));
|
||||
max_match = (int) strlen(matchname);
|
||||
|
||||
// Strip trailing /, if any...
|
||||
if (matchname[max_match - 1] == '/') {
|
||||
if (matchname[max_match - 1] == '/' && // Strip trailing /, if any...
|
||||
matchname[1] != 0 ) { // unless entire path is root ("/") -- STR #3500
|
||||
max_match --;
|
||||
matchname[max_match] = '\0';
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user