summaryrefslogtreecommitdiff
path: root/fluid/print_panel.fl
diff options
context:
space:
mode:
Diffstat (limited to 'fluid/print_panel.fl')
-rw-r--r--fluid/print_panel.fl5
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';
}