- if ((errno != 0) || (endptr == NULL) || (*endptr != 0))
- fprintf (stderr, "The \"-Z\" option requires a numeric argument.\n");
- else if ((tmp >= 0.0) && (tmp <= 100.0))
- opt_exit_status_threshold = tmp / 100.0;
+ if ((errno != 0) || (endptr == NULL) || (*endptr != 0) || (tmp < 0.0) || (tmp > 100.0))
+ {
+ fprintf (stderr, "Ignoring invalid -Z argument: %s\n", optarg);
+ fprintf (stderr, "The \"-Z\" option requires a numeric argument between 0 and 100.\n");
+ }