Project

General

Profile

Submit #3043 » 0001-fw_stub.awk-fix-processing-of-values-for-the-options.patch

Anonymous, 06/05/2017 09:25 AM

View differences:

sys/tools/fw_stub.awk
break;
}
else {
if (++i < ARGC)
if (++i < ARGC) {
opt_c = ARGV[i];
else
break;
} else {
usage();
}
}
} else if (o == "m") {
if (length(ARGV[i]) > j) {
......
break;
}
else {
if (++i < ARGC)
if (++i < ARGC) {
opt_m = ARGV[i];
else
break;
} else {
usage();
}
}
} else if (o == "l") {
if (length(ARGV[i]) > j) {
......
break;
}
else {
if (++i < ARGC)
if (++i < ARGC) {
opt_l = ARGV[i];
else
break;
} else {
usage();
}
}
} else
usage();
(1-1/2)