diff options
Diffstat (limited to 'test')
| -rw-r--r-- | test/demo.cxx | 2 | ||||
| -rw-r--r-- | test/editor.cxx | 4 | ||||
| -rw-r--r-- | test/file_chooser.cxx | 12 |
3 files changed, 9 insertions, 9 deletions
diff --git a/test/demo.cxx b/test/demo.cxx index 6d91a372d..9adc25d19 100644 --- a/test/demo.cxx +++ b/test/demo.cxx @@ -498,7 +498,7 @@ int load_the_menu(const char* fname) int main(int argc, char **argv) { putenv((char *)"FLTK_DOCDIR=../documentation/html"); - char buf[256]; + char buf[FL_PATH_MAX]; strcpy(buf, argv[0]); #if ( defined _MSC_VER || defined __MWERKS__ ) && defined _DEBUG // MS_VisualC appends a 'd' to debugging executables. remove it. diff --git a/test/editor.cxx b/test/editor.cxx index 722cd8199..f74dd8163 100644 --- a/test/editor.cxx +++ b/test/editor.cxx @@ -55,8 +55,8 @@ int changed = 0; -char filename[256] = ""; -char title[256]; +char filename[FL_PATH_MAX] = ""; +char title[FL_PATH_MAX]; Fl_Text_Buffer *textbuf = 0; 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]) |
