diff options
| author | Matthias Melcher <fltk@matthiasm.com> | 2010-12-19 21:20:10 +0000 |
|---|---|---|
| committer | Matthias Melcher <fltk@matthiasm.com> | 2010-12-19 21:20:10 +0000 |
| commit | 9092dccab89901b7074f9340bc7984910a80128f (patch) | |
| tree | 9c8d6ca2efa5c968060dc8b83afcec7daedfe764 /src/Fl_File_Icon2.cxx | |
| parent | dc0c85b9644553ac9b5c51da43697b9906f9b44d (diff) | |
Changed all fixed filename buffers (that I could find) to use FL_PATH_MX instead. Raised FL_PATH_MX from skipy 256 characters to 2048, which corresponds with modern file systems.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8063 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/Fl_File_Icon2.cxx')
| -rw-r--r-- | src/Fl_File_Icon2.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/Fl_File_Icon2.cxx b/src/Fl_File_Icon2.cxx index 4e4f2d11c..443496cb2 100644 --- a/src/Fl_File_Icon2.cxx +++ b/src/Fl_File_Icon2.cxx @@ -600,8 +600,8 @@ void Fl_File_Icon::load_system_icons(void) { int i; // Looping var Fl_File_Icon *icon; // New icons - char filename[1024]; // Filename - char icondir[1024]; // Icon directory + char filename[FL_PATH_MAX]; // Filename + char icondir[FL_PATH_MAX]; // Icon directory static int init = 0; // Have the icons been initialized? const char * const icondirs[] = { "Bluecurve", // Icon directories to look for, in order @@ -811,7 +811,7 @@ load_kde_icons(const char *directory, // I - Directory to load int i; // Looping var int n; // Number of entries in directory dirent **entries; // Entries in directory - char full[1024]; // Full name of file + char full[FL_PATH_MAX]; // Full name of file entries = (dirent **)0; @@ -841,11 +841,11 @@ load_kde_mimelnk(const char *filename, // I - mimelnk filename const char *icondir) { // I - Location of icons FILE *fp; char tmp[1024]; - char iconfilename[1024]; + char iconfilename[FL_PATH_MAX]; char pattern[1024]; char mimetype[1024]; char *val; - char full_iconfilename[1024]; + char full_iconfilename[FL_PATH_MAX]; Fl_File_Icon *icon; |
