forked from Lainports/freebsd-ports
with the Gnome desktop. The program is under development, and currently supports the CQ WW, CQ WPX, and ARRL DX contests, plus Field Day. Features include on-the-fly dupe checking, CW and voice message keying, super check partial, packet (Telnet and rf nodes), networking, and radio control (currently for the FT-1000 only). The program is designed to be used by U.S. stations, with some support for Canadian stations. New features and contests are being added regularly, and I will consider adding support for DX stations if there is sufficient demand. (The port version has bug fixes and some modifications for Canadian stations. - db) Submitted by: self
35 lines
1.2 KiB
C
35 lines
1.2 KiB
C
--- boxes.c.orig 2007-11-24 19:46:36.000000000 -0500
|
|
+++ boxes.c 2007-11-24 19:42:17.000000000 -0500
|
|
@@ -749,8 +749,13 @@
|
|
guint ikey, istate;
|
|
gchar msg[43], email_file_names[5][13], lpr_line[81];
|
|
gint margin=9;
|
|
+#ifdef BSD
|
|
+ const gchar *lpr_cmd =
|
|
+ "lpr ";
|
|
+#else
|
|
const gchar *lpr_cmd =
|
|
"lpr -r -o page-top=36 -o page-left=18 -o page-bottom=36 ";
|
|
+#endif
|
|
const gchar *print_file_names[4] = {"PRINT.SUM", "PRINT.DUP",
|
|
"PRINT.LOG", "PRINT.MLT"};
|
|
|
|
@@ -778,14 +783,14 @@
|
|
if(icall_count)
|
|
{
|
|
write_summary_file (print_file_names[obd->item], margin);
|
|
- strcpy(lpr_line, lpr_cmd);
|
|
- strcat(lpr_line, print_file_names[obd->item]);
|
|
+ snprintf(lpr_line, sizeof(lpr_line), "%s %s", lpr_cmd,
|
|
+ print_file_names[obd->item]);
|
|
icopy = system(lpr_line);
|
|
if(isel_contest==WPX)
|
|
{
|
|
write_multiplier_file (print_file_names[3], margin);
|
|
- strcpy(lpr_line, lpr_cmd);
|
|
- strcat(lpr_line, print_file_names[3]);
|
|
+ snprintf(lpr_line, sizeof(lpr_line), "%s %s", lpr_cmd,
|
|
+ print_file_names[3]);
|
|
icopy = system(lpr_line);
|
|
}
|
|
if(!icopy)
|