wrappers: Fix the comparison against max_args in clang-target-wrapper

Since we allocate max_args+1 elements, with one extra for the
null terminator, it's ok if we've used up to max_args elements
already.
This commit is contained in:
Martin Storsjö committed 2024-04-24 11:36:42 +03:00
1 parent 9de1bfe8a3
commit 340e2e7f0b
1 file changed
+1 -1
+1 -1
View File
@@ -113,7 +113,7 @@ int _tmain(int argc, TCHAR* argv[]) {
}
exec_argv[arg] = NULL;
if (arg >= max_arg) {
if (arg > max_arg) {
fprintf(stderr, "Too many options added\n");
abort();
}