mirror of
https://github.com/fltk/fltk.git
synced 2026-05-31 05:35:29 +08:00
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:
@@ -213,7 +213,7 @@ void template_delete_cb(Fl_Button *, void *) {
|
|||||||
|
|
||||||
void template_load() {
|
void template_load() {
|
||||||
int i;
|
int i;
|
||||||
char name[1024], filename[1024], path[1024], *ptr;
|
char name[1024], filename[1400], path[1024], *ptr;
|
||||||
struct dirent **files;
|
struct dirent **files;
|
||||||
int num_files;
|
int num_files;
|
||||||
|
|
||||||
|
|||||||
@@ -209,7 +209,7 @@ template_browser->do_callback();} {}
|
|||||||
Function {template_load()} {open return_type void
|
Function {template_load()} {open return_type void
|
||||||
} {
|
} {
|
||||||
code {int i;
|
code {int i;
|
||||||
char name[1024], filename[1024], path[1024], *ptr;
|
char name[1024], filename[1400], path[1024], *ptr;
|
||||||
struct dirent **files;
|
struct dirent **files;
|
||||||
int num_files;
|
int num_files;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user