Skip to content

Commit

Permalink
Fix new arguments length
Browse files Browse the repository at this point in the history
  • Loading branch information
Dev4Mod authored Dec 28, 2024
1 parent ad46397 commit 825e5c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dex2oat/src/main/cpp/dex2oat.c
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ int main(int argc, char **argv) {
close(sock_fd);
LOGD("sock: %s %d", sock.sun_path + 1, stock_fd);

const char *new_argv[argc + 2];
const char *new_argv[argc + 3];
for (int i = 0; i < argc; i++) new_argv[i] = argv[i];
new_argv[argc] = "--inline-max-code-units=0";
new_argv[argc + 1] = "--avoid-storing-invocation";
Expand Down

0 comments on commit 825e5c3

Please sign in to comment.