mirror of
https://git.freebsd.org/ports.git
synced 2025-06-06 21:30:31 -04:00
18 lines
637 B
C
18 lines
637 B
C
--- lib/options.c.orig 1999-08-31 17:42:41 UTC
|
|
+++ lib/options.c
|
|
@@ -493,6 +493,15 @@ a2ps_handle_options (a2ps_job * job, int
|
|
/* 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;
|
|
}
|