1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-20 04:02:27 +00:00
freebsd-ports/print/pdq/files/patch-af
Ade Lovett 4f8ba96420 Update MASTER_SITES and WWW line of pkg-descr
Support PREFIX properly

PR:		21615
Submitted by:	Ports Fury (no response from maintainer)
2000-10-13 20:27:13 +00:00

34 lines
1.2 KiB
Plaintext

--- src/xpdq_printer.c.orig Sat Apr 1 05:36:30 2000
+++ src/xpdq_printer.c Fri Aug 11 22:36:57 2000
@@ -33,19 +33,24 @@
pwizard_state *wizard;
dl_list *list;
+ char *error;
list = first_list_element (rc->driver_list);
if (list == NULL) {
- xpdq_error ("There are no printer drivers defined in\n"
- "/etc/printrc or ~/.printrc. Without printer drivers,\n"
- "the wizard cannot add printers.");
+ error = malloc(256);
+ sprintf (error, "There are no printer drivers defined in\n"
+ "%s or ~/.printrc. Without printer drivers,\n"
+ "the wizard cannot add printers.", PRINTRC_FILE);
+ xpdq_error(error);
return;
}
list = first_list_element (rc->interface_list);
if (list == NULL) {
- xpdq_error ("There are no printer interfaces defined in\n"
- "/etc/printrc or ~/.printrc. Without printer interfaces,\n"
- "the wizard cannot add printers.");
+ error = malloc(256);
+ sprintf (error, "There are no printer drivers defined in\n"
+ "%s or ~/.printrc. Without printer drivers,\n"
+ "the wizard cannot add printers.", PRINTRC_FILE);
+ xpdq_error(error);
return;
}
wizard = new_pwizard ();