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:
1 parent
9de1bfe8a3
commit
340e2e7f0b
1 file changed
+1
-1
@@ -113,7 +113,7 @@ int _tmain(int argc, TCHAR* argv[]) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
exec_argv[arg] = NULL;
|
exec_argv[arg] = NULL;
|
||||||
if (arg >= max_arg) {
|
if (arg > max_arg) {
|
||||||
fprintf(stderr, "Too many options added\n");
|
fprintf(stderr, "Too many options added\n");
|
||||||
abort();
|
abort();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user