summaryrefslogtreecommitdiff
path: root/fluid/code.cxx
diff options
context:
space:
mode:
authorGreg Ercolano <erco@seriss.com>2020-07-21 20:15:41 -0700
committerGreg Ercolano <erco@seriss.com>2020-08-01 14:19:40 -0700
commit2141c63628a831d3f53dad7035c94028f8d0d629 (patch)
tree614cb7b627da2decbb7cfe49c081f9d7b4140c58 /fluid/code.cxx
parent7514a73ba759f7fc9965eeef3b92ece899bd7a69 (diff)
Implement + deploy fl_strdup()
Diffstat (limited to 'fluid/code.cxx')
-rw-r--r--fluid/code.cxx5
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();