Rolling over into zero filesize makes no sense. Creating a rotating
buffer of zero files makes no sense.
Modify the checks for -C and -W to accept greater than one, not greater
than zero.
Signed-off-by: Jamie Bainbridge <[email protected]>
case 'C':
Cflag = atoi(optarg) * 1000000;
- if (Cflag < 0)
+ if (Cflag <= 0)
error("invalid file size %s", optarg);
break;
case 'W':
Wflag = atoi(optarg);
- if (Wflag < 0)
+ if (Wflag <= 0)
error("invalid number of output files %s", optarg);
WflagChars = getWflagChars(Wflag);
break;