summaryrefslogtreecommitdiffstats
path: root/print/a2ps-letter/files/patch-ae
blob: f20155f85436ffd7b5d3e3f6d078930dfff3ecaa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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;
 	}
OpenPOWER on IntegriCloud