From 13005b2a3f0f16579522523460a82dca48e855a4 Mon Sep 17 00:00:00 2001 From: Michael R Sweet Date: Sun, 4 May 2003 21:45:46 +0000 Subject: Fl_File_Browser incorrectly included "." on WIN32 (STR #9) Include shellapi.h instead of ShellAPI.h in the WIN32 drag-n-drop code in order to work with the MingW cross compiler (STR #6) The cursor was not properly restored when doing drag-n-drop on X11 (STR #4) Fl::remove_fd() didn't recalculate the highest file descriptor properly (STR #20) Fl_Preferences::deleteGroup() didn't work properly (STR #13) Fixed the fl_show_file_selector() function - it was copying using the wrong string size (STR #14) git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2975 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- src/forms_fselect.cxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/forms_fselect.cxx') diff --git a/src/forms_fselect.cxx b/src/forms_fselect.cxx index c23669eea..25186a774 100644 --- a/src/forms_fselect.cxx +++ b/src/forms_fselect.cxx @@ -1,5 +1,5 @@ // -// "$Id: forms_fselect.cxx,v 1.4.2.3.2.5 2003/01/30 21:44:29 easysw Exp $" +// "$Id: forms_fselect.cxx,v 1.4.2.3.2.6 2003/05/04 21:45:46 easysw Exp $" // // Forms file selection routines for the Fast Light Tool Kit (FLTK). // @@ -30,7 +30,7 @@ static char fl_directory[1024]; static const char *fl_pattern; // assummed passed value is static -static char fl_filename[256]; +static char fl_filename[1024]; char* fl_show_file_selector(const char *message,const char *dir, const char *pat,const char *fname) { @@ -48,7 +48,7 @@ char* fl_show_file_selector(const char *message,const char *dir, if (!q) return 0; strlcpy(fl_directory, q, sizeof(fl_directory)); p = (char *)fl_filename_name(fl_directory); - strlcpy(fl_filename, p, sizeof(fl_directory)); + strlcpy(fl_filename, p, sizeof(fl_filename)); if (p > fl_directory+1) p--; *p = 0; return (char *)q; @@ -61,5 +61,5 @@ char* fl_get_pattern() {return (char *)fl_pattern;} char* fl_get_filename() {return fl_filename;} // -// End of "$Id: forms_fselect.cxx,v 1.4.2.3.2.5 2003/01/30 21:44:29 easysw Exp $". +// End of "$Id: forms_fselect.cxx,v 1.4.2.3.2.6 2003/05/04 21:45:46 easysw Exp $". // -- cgit v1.2.3