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/print_panel.fl | |
| parent | 7514a73ba759f7fc9965eeef3b92ece899bd7a69 (diff) | |
| parent | e9688822ec68f066f425953278a853e049b93dfb (diff) | |
Merge pull request #116 from erco77/fl_strdup
fl_strdup() implemented + deployed
Diffstat (limited to 'fluid/print_panel.fl')
| -rw-r--r-- | fluid/print_panel.fl | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/fluid/print_panel.fl b/fluid/print_panel.fl index 1dd08615f..e2042f531 100644 --- a/fluid/print_panel.fl +++ b/fluid/print_panel.fl @@ -29,6 +29,9 @@ decl {\#include <stdlib.h>} {private local decl {\#include "../src/flstring.h"} {private local } +decl {\#include <FL/fl_string.h>} {private local +} + decl {\#include <FL/Fl_Preferences.H>} {private local } @@ -307,7 +310,7 @@ if ((lpstat = popen("LC_MESSAGES=C LANG=C lpstat -p -d", "r")) != NULL) { } *qptr = '\\0'; - print_choice->add(qname, 0, 0, (void *)strdup(name), 0); + print_choice->add(qname, 0, 0, (void *)fl_strdup(name), 0); } else if (!strncmp(line, "system default destination: ", 28)) { if (sscanf(line + 28, "%s", defname) != 1) defname[0] = '\\0'; } |
