summaryrefslogtreecommitdiff
path: root/test/unittests.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 /test/unittests.cxx
parent7514a73ba759f7fc9965eeef3b92ece899bd7a69 (diff)
Implement + deploy fl_strdup()
Diffstat (limited to 'test/unittests.cxx')
-rw-r--r--test/unittests.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/unittests.cxx b/test/unittests.cxx
index 12b65fe2a..ca04aac62 100644
--- a/test/unittests.cxx
+++ b/test/unittests.cxx
@@ -28,6 +28,7 @@
#include <FL/Fl_Group.H>
#include <FL/Fl_Box.H>
#include <FL/fl_draw.H> // fl_text_extents()
+#include <FL/fl_string.h> // fl_strdup()
// WINDOW/WIDGET SIZES
#define MAINWIN_W 700 // main window w()
@@ -53,7 +54,7 @@ public:
UnitTest(const char *label, Fl_Widget* (*create)()) :
fWidget(0L)
{
- fLabel = strdup(label);
+ fLabel = fl_strdup(label);
fCreate = create;
add(this);
}