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 /fluid/undo.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 'fluid/undo.cxx')
| -rw-r--r-- | fluid/undo.cxx | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/fluid/undo.cxx b/fluid/undo.cxx index 8d982a43c..0df6662a5 100644 --- a/fluid/undo.cxx +++ b/fluid/undo.cxx @@ -29,6 +29,7 @@ #include "Fl_Type.h" #include "undo.h" #include <FL/Fl_Preferences.H> +#include <FL/filename.H> #include "../src/flstring.h" #if defined(WIN32) && !defined(__CYGWIN__) # include <io.h> @@ -68,7 +69,7 @@ static int undo_paused = 0; // Undo checkpointing paused? // Return the undo filename static char *undo_filename(int level, char *buf, int bufsize) { - static char undo_path[1024] = ""; // Undo path + static char undo_path[FL_PATH_MAX] = ""; // Undo path if (!undo_path[0]) fluid_prefs.getUserdataPath(undo_path, sizeof(undo_path)); @@ -80,7 +81,7 @@ static char *undo_filename(int level, char *buf, int bufsize) { // Redo menu callback void redo_cb(Fl_Widget *, void *) { - char filename[1024]; // Undo checkpoint file + char filename[FL_PATH_MAX]; // Undo checkpoint file if (undo_current >= undo_last) return; @@ -103,7 +104,7 @@ void redo_cb(Fl_Widget *, void *) { // Undo menu callback void undo_cb(Fl_Widget *, void *) { - char filename[1024]; // Undo checkpoint file + char filename[FL_PATH_MAX]; // Undo checkpoint file if (undo_current <= 0) return; @@ -131,7 +132,7 @@ void undo_cb(Fl_Widget *, void *) { // Save current file to undo buffer void undo_checkpoint() { - char filename[1024]; // Undo checkpoint filename + char filename[FL_PATH_MAX]; // Undo checkpoint filename // printf("undo_checkpoint(): undo_current=%d, undo_paused=%d, modflag=%d\n", // undo_current, undo_paused, modflag); @@ -162,7 +163,7 @@ void undo_checkpoint() { // Clear undo buffer void undo_clear() { - char filename[1024]; // Undo checkpoint filename + char filename[FL_PATH_MAX]; // Undo checkpoint filename // Remove old checkpoint files... |
