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/code.cxx | |
| parent | 7514a73ba759f7fc9965eeef3b92ece899bd7a69 (diff) | |
| parent | e9688822ec68f066f425953278a853e049b93dfb (diff) | |
Merge pull request #116 from erco77/fl_strdup
fl_strdup() implemented + deployed
Diffstat (limited to 'fluid/code.cxx')
| -rw-r--r-- | fluid/code.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/fluid/code.cxx b/fluid/code.cxx index 7b156f57e..4603e9582 100644 --- a/fluid/code.cxx +++ b/fluid/code.cxx @@ -20,6 +20,7 @@ #include <stdarg.h> #include <FL/Fl.H> +#include <FL/fl_string.h> #include "Fl_Type.h" #include "alignment_panel.h" @@ -46,7 +47,7 @@ struct id { char* text; void* object; id *left, *right; - id (const char* t, void* o) : text(strdup(t)), object(o) {left = right = 0;} + id (const char* t, void* o) : text(fl_strdup(t)), object(o) {left = right = 0;} ~id(); }; @@ -109,7 +110,7 @@ struct included { char *text; included *left, *right; included(const char *t) { - text = strdup(t); + text = fl_strdup(t); left = right = 0; } ~included(); |
