diff options
| author | Albrecht Schlosser <albrechts.fltk@online.de> | 2019-08-29 17:58:24 +0200 |
|---|---|---|
| committer | Albrecht Schlosser <albrechts.fltk@online.de> | 2019-08-29 17:58:24 +0200 |
| commit | 50ee013a0138956381da9d681757c31560a10e0f (patch) | |
| tree | 15b24e6864f347235618bdc94d7618cff81c5af7 /test/file_chooser.cxx | |
| parent | 6e683783f41e3d8fd8494e7c9d234f4e8b5876da (diff) | |
Fix more compiler warnings (STR 3529)
test/colbrowser.cxx: [-Wformat-overflow=]
test/file_chooser.cxx: [-Wformat-overflow=]
Increase buffer size.
Diffstat (limited to 'test/file_chooser.cxx')
| -rw-r--r-- | test/file_chooser.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/file_chooser.cxx b/test/file_chooser.cxx index 6a5b42bcc..3c72cdd70 100644 --- a/test/file_chooser.cxx +++ b/test/file_chooser.cxx @@ -4,7 +4,7 @@ // File chooser test program. // // Copyright 1999-2010 by Michael Sweet. -// Copyright 2011-2017 by Bill Spitzak and others. +// Copyright 2011-2019 by Bill Spitzak and others. // // This library is free software. Distribution and use rights are outlined in // the file "COPYING" which should have been included with this file. If this @@ -286,7 +286,7 @@ pdf_check(const char *name, // I - Name of file { const char *home; // Home directory char preview[FL_PATH_MAX], // Preview filename - command[FL_PATH_MAX]; // Command + command[3 * FL_PATH_MAX]; // Command if (memcmp(header, "%PDF", 4) != 0) @@ -318,7 +318,7 @@ ps_check(const char *name, // I - Name of file const char *home; // Home directory char preview[FL_PATH_MAX], // Preview filename outname[FL_PATH_MAX], // Preview PS file - command[FL_PATH_MAX]; // Command + command[3 * FL_PATH_MAX]; // Command FILE *in, // Input file *out; // Output file int page; // Current page |
