summaryrefslogtreecommitdiff
path: root/src/print_panel.cxx
diff options
context:
space:
mode:
authorerco77 <erco@seriss.com>2020-08-01 14:35:44 -0700
committerGitHub <noreply@github.com>2020-08-01 14:35:44 -0700
commit7abc09ad89b4c3d0c17ee8dc9d02ccd261cd13f2 (patch)
tree72e461bac5930f8a319d48a6ea99ba793dd35a8b /src/print_panel.cxx
parent7514a73ba759f7fc9965eeef3b92ece899bd7a69 (diff)
parente9688822ec68f066f425953278a853e049b93dfb (diff)
Merge pull request #116 from erco77/fl_strdup
fl_strdup() implemented + deployed
Diffstat (limited to 'src/print_panel.cxx')
-rw-r--r--src/print_panel.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/print_panel.cxx b/src/print_panel.cxx
index 617b9938d..7b29991fa 100644
--- a/src/print_panel.cxx
+++ b/src/print_panel.cxx
@@ -36,6 +36,7 @@
#include "../src/flstring.h"
#include <FL/Fl_Preferences.H>
#include <FL/Fl_Int_Input.H>
+#include <FL/fl_string.h>
static Fl_Double_Window *print_panel=(Fl_Double_Window *)0;
static Fl_Group *print_panel_controls=(Fl_Group *)0;
@@ -541,7 +542,7 @@ printing_style print_load() { // return whether SystemV or BSD printing style is
}
*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';
}
@@ -553,7 +554,7 @@ printing_style print_load() { // return whether SystemV or BSD printing style is
while (fgets(line, sizeof(line),lpstat)) { // get names of all known printers
if (*line == '#' || (p = strchr(line, '|')) == NULL) continue;
*p = 0;
- print_choice->add(line, 0, 0, (void *)strdup(line), 0);
+ print_choice->add(line, 0, 0, (void *)fl_strdup(line), 0);
style = BSD;
*p = '|';
while (1) {