aboutsummaryrefslogtreecommitdiffstats
path: root/print/a2ps-letter
diff options
context:
space:
mode:
authorchuckr <chuckr@FreeBSD.org>2000-06-28 11:21:11 +0800
committerchuckr <chuckr@FreeBSD.org>2000-06-28 11:21:11 +0800
commitf52c9b334acfa793db7f1d3fa51ca08600963151 (patch)
tree376e8fac4dc9e570149fa36edbbc9b0c23973b94 /print/a2ps-letter
parent000c0b00765247f7dc08279c8b798bbb3a75c1d2 (diff)
downloadfreebsd-ports-gnome-f52c9b334acfa793db7f1d3fa51ca08600963151.tar.gz
freebsd-ports-gnome-f52c9b334acfa793db7f1d3fa51ca08600963151.tar.zst
freebsd-ports-gnome-f52c9b334acfa793db7f1d3fa51ca08600963151.zip
From received mail:
Hi, by accident I found that a2ps dumps core if invoked with options for the old a2ps version. a2ps -f -F7.0 reproduces the problem. With the following patch the problem seems to be cured. The patches work. Submitted by: Oliver Adler <oli@devsoft.devsoft.com>
Diffstat (limited to 'print/a2ps-letter')
-rw-r--r--print/a2ps-letter/files/patch-ae18
1 files changed, 18 insertions, 0 deletions
diff --git a/print/a2ps-letter/files/patch-ae b/print/a2ps-letter/files/patch-ae
new file mode 100644
index 000000000000..f20155f85436
--- /dev/null
+++ b/print/a2ps-letter/files/patch-ae
@@ -0,0 +1,18 @@
+--- lib/options.c.orig Tue Jun 27 23:02:30 2000
++++ lib/options.c Tue Jun 27 23:06:26 2000
+@@ -489,6 +489,15 @@
+ /* A font size is given */
+ job->fontsize = get_length ("--font-size", cp,
+ 0.0, 0.0, "pt", range_min_strict);
++ if (job->fontsize == 0.0)
++ {
++ error (0, 0, _("invalid argument %s for -f or --font-size option"),
++ cp);
++ fprintf (stderr,
++ _("Valid arguments are floats with optonal units!\n"));
++ fprintf (stderr, _("Try `a2ps --help' for more information.\n"));
++ exit (EXIT_FAILURE);
++ }
+ job->columns_requested = 0;
+ job->lines_requested = 0;
+ }