wrappers: Fix an incorrect check for the max number of arguments in clang-target-wrapper.c

This commit is contained in:
Martin Storsjö committed 2022-02-09 15:39:43 +02:00
1 parent bd9e16f732
commit 977df0d83e
1 file changed
+1 -1
+1 -1
View File
@@ -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();
}