summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael R Sweet <michael.r.sweet@gmail.com>2005-05-09 20:40:24 +0000
committerMichael R Sweet <michael.r.sweet@gmail.com>2005-05-09 20:40:24 +0000
commit34d5a8b16e752e80755f7d21660bc991525dab49 (patch)
tree4ea2a1c81adce40836a1bcf7984abb58724512e1
parent28d2c320c97bb4a875f0915ba2212aef74f8dbb3 (diff)
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
-rw-r--r--src/Fl_File_Chooser2.cxx1
1 files changed, 0 insertions, 1 deletions
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;