From 9092dccab89901b7074f9340bc7984910a80128f Mon Sep 17 00:00:00 2001 From: Matthias Melcher Date: Sun, 19 Dec 2010 21:20:10 +0000 Subject: 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 --- src/Fl_File_Icon2.cxx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/Fl_File_Icon2.cxx') 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; -- cgit v1.2.3