opnsense-ports/print/a2ps/files/patch-options.c
Franco Fichtner 8cb1a96ede ports: pull in a snapshot of the FreeBSD ports tree
Taken from:	https://github.com/freebsd/freebsd-ports.git
Commit id:	5070672073b68be364139bc6b3a89100bd17d331
2014-11-09 14:03:21 +01:00

18 lines
622 B
C

--- lib/options.c.orig Thu Sep 21 23:22:36 2000
+++ lib/options.c Thu Sep 21 23:22:42 2000
@@ -493,6 +493,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;
}