Project

General

Profile

0001-fw_stub.awk-fix-processing-of-values-for-the-options.patch

sucanjan@fit.cvut.cz, 06/05/2017 09:25 AM

Download (1.29 KB)

View differences:

sys/tools/fw_stub.awk
68 68
					break;
69 69
				}
70 70
				else {
71
					if (++i < ARGC)
71
					if (++i < ARGC) {
72 72
						opt_c = ARGV[i];
73
					else
73
						break;
74
					} else {
74 75
						usage();
76
					}
75 77
				}
76 78
			} else if (o == "m") {
77 79
				if (length(ARGV[i]) > j) {
......
79 81
					break;
80 82
				}
81 83
				else {
82
					if (++i < ARGC)
84
					if (++i < ARGC) {
83 85
						opt_m = ARGV[i];
84
					else
86
						break;
87
					} else {
85 88
						usage();
89
					}
86 90
				}
87 91
			} else if (o == "l") {
88 92
				if (length(ARGV[i]) > j) {
......
90 94
					break;
91 95
				}
92 96
				else {
93
					if (++i < ARGC)
97
					if (++i < ARGC) {
94 98
						opt_l = ARGV[i];
95
					else
99
						break;
100
					} else {
96 101
						usage();
102
					}
97 103
				}
98 104
			} else
99 105
				usage();
100
-