Merge pull request #226 from netgroup/master

improve parsing of stepbytes (increment size) argument
这个提交包含在:
David Addison 编写, GitHub 于 2024-07-30 14:58:54 -07:00 提交
2 父节点 0d86b5a6e7 746549b28d
当前提交 9d26b8422b
1 个文件已更改
+6 -1
+6 -1
查看文件
@@ -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);