diff options
Diffstat (limited to 'FL')
| -rw-r--r-- | FL/Fl_File_Chooser.H | 4 | ||||
| -rw-r--r-- | FL/Fl_Help_Dialog.H | 4 | ||||
| -rw-r--r-- | FL/Fl_Help_View.H | 5 | ||||
| -rw-r--r-- | FL/filename.H | 2 |
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 |
