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() --- src/Fl_File_Chooser2.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/Fl_File_Chooser2.cxx') diff --git a/src/Fl_File_Chooser2.cxx b/src/Fl_File_Chooser2.cxx index ec04bd77c..ddbb3e5cd 100644 --- a/src/Fl_File_Chooser2.cxx +++ b/src/Fl_File_Chooser2.cxx @@ -325,6 +325,7 @@ #include #include #include +#include #include #include @@ -945,7 +946,7 @@ Fl_File_Chooser::filter(const char *p) // I - Pattern(s) if (!p || !*p) p = "*"; // Copy the pattern string... - copyp = strdup(p); + copyp = fl_strdup(p); // Separate the pattern string as necessary... showChoice->clear(); -- cgit v1.2.3