Merge pull request #226 from netgroup/master

improve parsing of stepbytes (increment size) argument
Este cometimento está contido em:
David Addison criou e GitHub cometeu 2024-07-30 14:58:54 -07:00
2 ascendentes 0d86b5a6e7 746549b28d
cometimento 9d26b8422b
1 ficheiro modificado
+6 -1
+6 -1
Ver ficheiro
@@ -770,7 +770,12 @@ int main(int argc, char* argv[]) {
maxBytes = (size_t)parsed;
break;
case 'i':
stepBytes = strtol(optarg, NULL, 0);
parsed = parsesize(optarg);
if (parsed < 0) {
fprintf(stderr, "invalid size specified for 'stepBytes'\n");
return -1;
}
stepBytes = (size_t)parsed;
break;
case 'f':
stepFactor = strtol(optarg, NULL, 0);