wrappers: Fix an incorrect check for the max number of arguments in clang-target-wrapper.c
This commit is contained in:
1 parent
bd9e16f732
commit
977df0d83e
1 file changed
+1
-1
@@ -101,7 +101,7 @@ int _tmain(int argc, TCHAR* argv[]) {
|
||||
exec_argv[arg++] = argv[i];
|
||||
|
||||
exec_argv[arg] = NULL;
|
||||
if (arg > max_arg) {
|
||||
if (arg >= max_arg) {
|
||||
fprintf(stderr, "Too many options added\n");
|
||||
abort();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user