summaryrefslogtreecommitdiff
path: root/FL
diff options
context:
space:
mode:
authorMatthias Melcher <fltk@matthiasm.com>2010-12-19 21:20:10 +0000
committerMatthias Melcher <fltk@matthiasm.com>2010-12-19 21:20:10 +0000
commit9092dccab89901b7074f9340bc7984910a80128f (patch)
tree9c8d6ca2efa5c968060dc8b83afcec7daedfe764 /FL
parentdc0c85b9644553ac9b5c51da43697b9906f9b44d (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 'FL')
-rw-r--r--FL/Fl_File_Chooser.H4
-rw-r--r--FL/Fl_Help_Dialog.H4
-rw-r--r--FL/Fl_Help_View.H5
-rw-r--r--FL/filename.H2
4 files changed, 8 insertions, 7 deletions
diff --git a/FL/Fl_File_Chooser.H b/FL/Fl_File_Chooser.H
index 3904db0f8..3b8777d97 100644
--- a/FL/Fl_File_Chooser.H
+++ b/FL/Fl_File_Chooser.H
@@ -54,8 +54,8 @@ private:
static Fl_Preferences prefs_;
void (*callback_)(Fl_File_Chooser*, void *);
void *data_;
- char directory_[1024];
- char pattern_[1024];
+ char directory_[FL_PATH_MAX];
+ char pattern_[FL_PATH_MAX];
char preview_text_[2048];
int type_;
void favoritesButtonCB();
diff --git a/FL/Fl_Help_Dialog.H b/FL/Fl_Help_Dialog.H
index b669a807c..cc0b3a189 100644
--- a/FL/Fl_Help_Dialog.H
+++ b/FL/Fl_Help_Dialog.H
@@ -43,8 +43,8 @@
class FL_EXPORT Fl_Help_Dialog {
int index_;
int max_;
- int line_[100];
- char file_[100][256];
+ int line_[100]; // FIXME: we must remove those static numbers
+ char file_[100][FL_PATH_MAX]; // FIXME: we must remove those static numbers
int find_pos_;
public:
Fl_Help_Dialog();
diff --git a/FL/Fl_Help_View.H b/FL/Fl_Help_View.H
index 6042f0021..c2caaa830 100644
--- a/FL/Fl_Help_View.H
+++ b/FL/Fl_Help_View.H
@@ -42,6 +42,7 @@
# include "Fl_Scrollbar.H"
# include "fl_draw.H"
# include "Fl_Shared_Image.H"
+# include "filename.H"
//
@@ -235,8 +236,8 @@ class FL_EXPORT Fl_Help_View : public Fl_Group // Help viewer widget
atargets_; ///< Allocated targets
Fl_Help_Target *targets_; ///< Targets
- char directory_[1024]; ///< Directory for current file
- char filename_[1024]; ///< Current filename
+ char directory_[FL_PATH_MAX];///< Directory for current file
+ char filename_[FL_PATH_MAX]; ///< Current filename
int topline_, ///< Top line in document
leftline_, ///< Lefthand position
size_, ///< Total document length
diff --git a/FL/filename.H b/FL/filename.H
index c882ffe5b..b9ca4f1be 100644
--- a/FL/filename.H
+++ b/FL/filename.H
@@ -41,7 +41,7 @@
File names and URI functions defined in <FL/filename.H>
@{ */
-# define FL_PATH_MAX 256 /**< all path buffers should use this length */
+# define FL_PATH_MAX 2048 /**< all path buffers should use this length */
/** Gets the file name from a path.
Similar to basename(3), exceptions shown below.
\code