diff options
| author | erco77 <erco@seriss.com> | 2020-08-01 14:35:44 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-08-01 14:35:44 -0700 |
| commit | 7abc09ad89b4c3d0c17ee8dc9d02ccd261cd13f2 (patch) | |
| tree | 72e461bac5930f8a319d48a6ea99ba793dd35a8b /fluid/template_panel.cxx | |
| parent | 7514a73ba759f7fc9965eeef3b92ece899bd7a69 (diff) | |
| parent | e9688822ec68f066f425953278a853e049b93dfb (diff) | |
Merge pull request #116 from erco77/fl_strdup
fl_strdup() implemented + deployed
Diffstat (limited to 'fluid/template_panel.cxx')
| -rw-r--r-- | fluid/template_panel.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fluid/template_panel.cxx b/fluid/template_panel.cxx index f46b85d18..fc04495df 100644 --- a/fluid/template_panel.cxx +++ b/fluid/template_panel.cxx @@ -25,6 +25,7 @@ #include <FL/fl_ask.H> #include <FL/Fl_Shared_Image.H> #include <FL/Fl_Preferences.H> +#include <FL/fl_string.h> #if defined(_WIN32) && !defined(__CYGWIN__) #include <io.h> #else @@ -257,7 +258,7 @@ void template_load() { // Add the template to the browser... snprintf(filename, sizeof(filename), "%s/%s", path, files[i]->d_name); - template_browser->add(name, strdup(filename)); + template_browser->add(name, fl_strdup(filename)); } free(files[i]); |
