commit
7b70a433cf
|
|
@ -101,6 +101,8 @@ int main(int argc, char *argv[])
|
||||||
break;
|
break;
|
||||||
case 's':
|
case 's':
|
||||||
todo_send = strtoul(optarg ?: "8", NULL, 0);
|
todo_send = strtoul(optarg ?: "8", NULL, 0);
|
||||||
|
if (todo_send > sizeof(dat))
|
||||||
|
error(1, 0, "Unsupported size. max: %i", sizeof(dat));
|
||||||
break;
|
break;
|
||||||
case 'r':
|
case 'r':
|
||||||
todo_recv = 1;
|
todo_recv = 1;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue