diff options
| author | erco77 <erco@seriss.com> | 2020-08-01 14:35:44 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-08-01 14:35:44 -0700 |
| commit | 7abc09ad89b4c3d0c17ee8dc9d02ccd261cd13f2 (patch) | |
| tree | 72e461bac5930f8a319d48a6ea99ba793dd35a8b /fluid/fluid.cxx | |
| parent | 7514a73ba759f7fc9965eeef3b92ece899bd7a69 (diff) | |
| parent | e9688822ec68f066f425953278a853e049b93dfb (diff) | |
Merge pull request #116 from erco77/fl_strdup
fl_strdup() implemented + deployed
Diffstat (limited to 'fluid/fluid.cxx')
| -rw-r--r-- | fluid/fluid.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fluid/fluid.cxx b/fluid/fluid.cxx index 0cd678827..e9025a4e3 100644 --- a/fluid/fluid.cxx +++ b/fluid/fluid.cxx @@ -36,6 +36,7 @@ #include <FL/Fl_Native_File_Chooser.H> #include <FL/Fl_Printer.H> #include <FL/fl_utf8.h> +#include <FL/fl_string.h> #include <stdio.h> #include <stdlib.h> #include <errno.h> @@ -1544,7 +1545,7 @@ show_shell_window() { void set_filename(const char *c) { if (filename) free((void *)filename); - filename = c ? strdup(c) : NULL; + filename = c ? fl_strdup(c) : NULL; if (filename && !batch_mode) update_history(filename); |
