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 /test/menubar.cxx | |
| parent | 7514a73ba759f7fc9965eeef3b92ece899bd7a69 (diff) | |
| parent | e9688822ec68f066f425953278a853e049b93dfb (diff) | |
Merge pull request #116 from erco77/fl_strdup
fl_strdup() implemented + deployed
Diffstat (limited to 'test/menubar.cxx')
| -rw-r--r-- | test/menubar.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/menubar.cxx b/test/menubar.cxx index 856aa72a1..43e4961ce 100644 --- a/test/menubar.cxx +++ b/test/menubar.cxx @@ -30,6 +30,7 @@ #include <FL/fl_draw.H> #include <FL/Fl_Simple_Terminal.H> #include <FL/fl_ask.H> +#include <FL/fl_string.h> #define TERMINAL_HEIGHT 120 @@ -225,7 +226,7 @@ int main(int argc, char **argv) { for (int i=0; i<99; i++) { char buf[100]; sprintf(buf,"item %d",i); - hugemenu[i].text = strdup(buf); + hugemenu[i].text = fl_strdup(buf); } Fl_Double_Window window(WIDTH,400+TERMINAL_HEIGHT); G_tty = new Fl_Simple_Terminal(0,400,WIDTH,TERMINAL_HEIGHT); |
