Fix another compiler warning (STR 3529)

fluid/template_panel.{fl|cxx}:

  .../fluid/template_panel.cxx:261:44: warning: ‘%s’ directive output
  may be truncated writing up to 255 bytes into a region of size
  between 0 and 1023 [-Wformat-truncation=]

Solution: increase buffer size from 1024 to 1400.
This commit is contained in:
Albrecht Schlosser 2019-08-29 17:32:26 +02:00
parent ba8db654ff
commit 6e683783f4
2 changed files with 2 additions and 2 deletions

View File

@ -213,7 +213,7 @@ void template_delete_cb(Fl_Button *, void *) {
void template_load() {
int i;
char name[1024], filename[1024], path[1024], *ptr;
char name[1024], filename[1400], path[1024], *ptr;
struct dirent **files;
int num_files;

View File

@ -209,7 +209,7 @@ template_browser->do_callback();} {}
Function {template_load()} {open return_type void
} {
code {int i;
char name[1024], filename[1024], path[1024], *ptr;
char name[1024], filename[1400], path[1024], *ptr;
struct dirent **files;
int num_files;