mirror of
https://github.com/fltk/fltk.git
synced 2026-06-04 15:32:12 +08:00
Remove an extra, bogus strlcpy() from the Fl_File_Chooser::value(int)
method. This caused all filenames to be returned without their paths... git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4323 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
@@ -1066,7 +1066,6 @@ Fl_File_Chooser::value(int f) // I - File number
|
||||
}
|
||||
|
||||
// Strip trailing slash, if any...
|
||||
strlcpy(pathname, name, sizeof(pathname));
|
||||
slash = pathname + strlen(pathname) - 1;
|
||||
if (*slash == '/') *slash = '\0';
|
||||
return pathname;
|
||||
|
||||
Reference in New Issue
Block a user