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/filename_absolute.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/filename_absolute.cxx')
| -rw-r--r-- | src/filename_absolute.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/filename_absolute.cxx b/src/filename_absolute.cxx index 477fe2d56..4381a2dbe 100644 --- a/src/filename_absolute.cxx +++ b/src/filename_absolute.cxx @@ -121,7 +121,7 @@ int fl_filename_absolute(char *to, int tolen, const char *from) { [..] chdir("/var/tmp/somedir"); // set cwd to /var/tmp/somedir [..] - char out[1024]; + char out[FL_PATH_MAX]; fl_filename_relative(out, sizeof(out), "/var/tmp/somedir/foo.txt"); // out="foo.txt", return=1 fl_filename_relative(out, sizeof(out), "/var/tmp/foo.txt"); // out="../foo.txt", return=1 fl_filename_relative(out, sizeof(out), "foo.txt"); // out="foo.txt", return=0 (no change) @@ -139,7 +139,7 @@ fl_filename_relative(char *to, // O - Relative filename const char *from) {// I - Absolute filename char *newslash; // Directory separator const char *slash; // Directory separator - char cwd_buf[1024]; // Current directory + char cwd_buf[FL_PATH_MAX]; // Current directory char *cwd = cwd_buf; |
