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/utf8.cxx | |
| parent | 7514a73ba759f7fc9965eeef3b92ece899bd7a69 (diff) | |
Implement + deploy fl_strdup()
Diffstat (limited to 'test/utf8.cxx')
| -rw-r--r-- | test/utf8.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/test/utf8.cxx b/test/utf8.cxx index ed1dd1063..9151264f8 100644 --- a/test/utf8.cxx +++ b/test/utf8.cxx @@ -28,6 +28,7 @@ #include <FL/Fl_Output.H> #include <FL/fl_draw.H> #include <FL/fl_utf8.h> +#include <FL/fl_string.h> #include <stdio.h> #include <stdlib.h> @@ -620,10 +621,10 @@ int main(int argc, char** argv) sprintf(bu, "0x%06lX", y * 16); Fl_Input *b = new Fl_Input(200,(y-off)*25,80,25); b->textfont(FL_COURIER); - b->value(strdup(bu)); + b->value(fl_strdup(bu)); b = new Fl_Input(280,(y-off)*25,380,25); b->textfont(extra_font); - b->value(strdup(buf)); + b->value(fl_strdup(buf)); } scroll.end(); main_win->resizable(scroll); |
