diff options
| author | Greg Ercolano <erco@seriss.com> | 2020-07-21 20:15:41 -0700 |
|---|---|---|
| committer | Greg Ercolano <erco@seriss.com> | 2020-08-01 14:19:40 -0700 |
| commit | 2141c63628a831d3f53dad7035c94028f8d0d629 (patch) | |
| tree | 614cb7b627da2decbb7cfe49c081f9d7b4140c58 /src/Fl_File_Chooser2.cxx | |
| parent | 7514a73ba759f7fc9965eeef3b92ece899bd7a69 (diff) | |
Implement + deploy fl_strdup()
Diffstat (limited to 'src/Fl_File_Chooser2.cxx')
| -rw-r--r-- | src/Fl_File_Chooser2.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
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 <FL/platform.H> #include <FL/Fl_Shared_Image.H> #include <FL/fl_draw.H> +#include <FL/fl_string.h> #include <stdio.h> #include <stdlib.h> @@ -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(); |
