ascii: Fix parsing of -O width=<n> option.
[pspp] / 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'"),