Skip to content

Commit

Permalink
Fix OOB write in start_default_shell()
Browse files Browse the repository at this point in the history
  • Loading branch information
xtkoba authored and lanoxx committed May 9, 2022
1 parent a8f70a8 commit 51a980a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tilda_terminal.c
Original file line number Diff line number Diff line change
Expand Up @@ -573,7 +573,7 @@ start_default_shell (tilda_term *tt)
*/
flags |= G_SPAWN_FILE_AND_ARGV_ZERO;
} else {
argv = malloc(1 * sizeof(void *));
argv = malloc(2 * sizeof(void *));
argv[0] = default_command;
argv[1] = NULL;
}
Expand Down

0 comments on commit 51a980a

Please sign in to comment.