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.fl | |
| parent | 7514a73ba759f7fc9965eeef3b92ece899bd7a69 (diff) | |
| parent | e9688822ec68f066f425953278a853e049b93dfb (diff) | |
Merge pull request #116 from erco77/fl_strdup
fl_strdup() implemented + deployed
Diffstat (limited to 'fluid/template_panel.fl')
| -rw-r--r-- | fluid/template_panel.fl | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/fluid/template_panel.fl b/fluid/template_panel.fl index 5da887495..b0d5b9ff9 100644 --- a/fluid/template_panel.fl +++ b/fluid/template_panel.fl @@ -29,6 +29,9 @@ decl {\#include <stdlib.h>} {private local decl {\#include "../src/flstring.h"} {private local } +decl {\#include <FL/fl_string.h>} {private local +} + decl {\#include <errno.h>} {private local } @@ -253,7 +256,7 @@ for (i = 0; i < num_files; i ++) { // 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]); |
