summaryrefslogtreecommitdiff
path: root/test/file_chooser.cxx
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 /test/file_chooser.cxx
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 'test/file_chooser.cxx')
-rw-r--r--test/file_chooser.cxx12
1 files changed, 6 insertions, 6 deletions
diff --git a/test/file_chooser.cxx b/test/file_chooser.cxx
index c849438b8..a928b714c 100644
--- a/test/file_chooser.cxx
+++ b/test/file_chooser.cxx
@@ -253,8 +253,8 @@ pdf_check(const char *name, // I - Name of file
int) // I - Length of header data (unused)
{
const char *home; // Home directory
- char preview[1024], // Preview filename
- command[1024]; // Command
+ char preview[FL_PATH_MAX], // Preview filename
+ command[FL_PATH_MAX]; // Command
if (memcmp(header, "%PDF", 4) != 0)
@@ -284,9 +284,9 @@ ps_check(const char *name, // I - Name of file
int) // I - Length of header data (unused)
{
const char *home; // Home directory
- char preview[1024], // Preview filename
- outname[1024], // Preview PS file
- command[1024]; // Command
+ char preview[FL_PATH_MAX], // Preview filename
+ outname[FL_PATH_MAX], // Preview PS file
+ command[FL_PATH_MAX]; // Command
FILE *in, // Input file
*out; // Output file
int page; // Current page
@@ -346,7 +346,7 @@ show_callback(void)
{
int i; // Looping var
int count; // Number of files selected
- char relative[1024]; // Relative filename
+ char relative[FL_PATH_MAX]; // Relative filename
if (filter->value()[0])