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:
Michael R Sweet
2005-05-09 20:40:24 +00:00
parent 28d2c320c9
commit 34d5a8b16e
-1
View File
@@ -1066,7 +1066,6 @@ Fl_File_Chooser::value(int f) // I - File number
} }
// Strip trailing slash, if any... // Strip trailing slash, if any...
strlcpy(pathname, name, sizeof(pathname));
slash = pathname + strlen(pathname) - 1; slash = pathname + strlen(pathname) - 1;
if (*slash == '/') *slash = '\0'; if (*slash == '/') *slash = '\0';
return pathname; return pathname;