From 2141c63628a831d3f53dad7035c94028f8d0d629 Mon Sep 17 00:00:00 2001 From: Greg Ercolano Date: Tue, 21 Jul 2020 20:15:41 -0700 Subject: Implement + deploy fl_strdup() --- fluid/code.cxx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'fluid/code.cxx') 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 #include +#include #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(); -- cgit v1.2.3