From 34d5a8b16e752e80755f7d21660bc991525dab49 Mon Sep 17 00:00:00 2001 From: Michael R Sweet Date: Mon, 9 May 2005 20:40:24 +0000 Subject: 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 --- src/Fl_File_Chooser2.cxx | 1 - 1 file changed, 1 deletion(-) (limited to 'src') diff --git a/src/Fl_File_Chooser2.cxx b/src/Fl_File_Chooser2.cxx index c55012734..6c7ebc084 100644 --- a/src/Fl_File_Chooser2.cxx +++ b/src/Fl_File_Chooser2.cxx @@ -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; -- cgit v1.2.3