fix getopt optarg

This commit is contained in:
Akos Horvath 2022-07-19 21:00:23 +02:00
parent 572e28c32f
commit a50c52566d

View File

@ -29,7 +29,7 @@ int main(int argc, char **argv)
int tcount = 0; int tcount = 0;
int maxiter = 0; int maxiter = 0;
while ((c = getopt(argc, argv, "t::i::")) != -1) { while ((c = getopt(argc, argv, "t:i:")) != -1) {
switch (c) { switch (c) {
case 't': case 't':
targ = optarg; targ = optarg;