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 /test/menubar.cxx | |
| parent | 7514a73ba759f7fc9965eeef3b92ece899bd7a69 (diff) | |
Implement + deploy fl_strdup()
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); |
