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_Tree.cxx | |
| parent | 7514a73ba759f7fc9965eeef3b92ece899bd7a69 (diff) | |
Implement + deploy fl_strdup()
Diffstat (limited to 'src/Fl_Tree.cxx')
| -rw-r--r-- | src/Fl_Tree.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Fl_Tree.cxx b/src/Fl_Tree.cxx index ec1d4816e..5dab99c2a 100644 --- a/src/Fl_Tree.cxx +++ b/src/Fl_Tree.cxx @@ -6,6 +6,7 @@ #include <FL/Fl_Tree.H> #include <FL/Fl_Preferences.H> +#include <FL/fl_string.h> ////////////////////// // Fl_Tree.cxx @@ -2643,7 +2644,7 @@ void Fl_Tree::load(Fl_Preferences &prefs) { n = prefs.entries(); for (i=0; i<n; i++) { // We must remove all fwd slashes in the key and value strings. Replace with backslash. - char *key = strdup(prefs.entry(i)); + char *key = fl_strdup(prefs.entry(i)); int kn = (int) strlen(key); for (j=0; j<kn; j++) { if (key[j]=='/') key[j]='\\'; |
