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/template_panel.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'fluid/template_panel.cxx') diff --git a/fluid/template_panel.cxx b/fluid/template_panel.cxx index f46b85d18..fc04495df 100644 --- a/fluid/template_panel.cxx +++ b/fluid/template_panel.cxx @@ -25,6 +25,7 @@ #include #include #include +#include #if defined(_WIN32) && !defined(__CYGWIN__) #include #else @@ -257,7 +258,7 @@ void template_load() { // 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]); -- cgit v1.2.3