ascii: Fix parsing of -O width=<n> option.
authorBen Pfaff <blp@cs.stanford.edu>
Thu, 9 Jan 2020 07:22:49 +0000 (07:22 +0000)
committerBen Pfaff <blp@cs.stanford.edu>
Thu, 9 Jan 2020 07:23:00 +0000 (07:23 +0000)
src/output/ascii.c

index e41e128c6df109878426acc84214951b8e928108..abf564401fa361ed984ee5935f77c7a410d14003 100644 (file)
@@ -371,7 +371,7 @@ parse_page_size (struct driver_option *option)
 
           errno = 0;
           value = strtol (option->value, &tail, 0);
-          if (dim >= 1 && errno != ERANGE && *tail == '\0')
+          if (value >= 1 && errno != ERANGE && *tail == '\0')
             dim = value;
           else
             msg (MW, _("%s: %s must be positive integer or `auto'"),