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/utf8.cxx | |
| parent | 7514a73ba759f7fc9965eeef3b92ece899bd7a69 (diff) | |
| parent | e9688822ec68f066f425953278a853e049b93dfb (diff) | |
Merge pull request #116 from erco77/fl_strdup
fl_strdup() implemented + deployed
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); |
