aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--bb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bb.c b/bb.c
index fa7c946..fd15fd6 100644
--- a/bb.c
+++ b/bb.c
@@ -131,7 +131,7 @@ static int run_cmd_on_selection(bb_state_t *state, const char *cmd)
if ((child = fork()) == 0) {
// TODO: is there a max number of args? Should this be batched?
- char **const args = calloc(MAX(1, state->nselected) + 4, sizeof(char*));
+ char **const args = calloc(MAX(1, state->nselected) + 5, sizeof(char*));
int i = 0;
args[i++] = "sh";
args[i++] = "-c";