[TD-2549]

This commit is contained in:
Hui Li 2020-12-24 15:06:45 +08:00
parent d61f1d26eb
commit 5771d26b89
1 changed files with 3 additions and 0 deletions

View File

@ -332,6 +332,9 @@ static error_t parse_opt(int key, char *arg, struct argp_state *state) {
break;
case 'N':
arguments->data_batch = atoi(arg);
if (arguments->data_batch >= INT16_MAX) {
arguments->data_batch = INT16_MAX - 1;
}
break;
case 'L':
{