summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/util/argv_exec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/util/argv_exec.c b/lib/util/argv_exec.c
index e39153c..384a64d 100644
--- a/lib/util/argv_exec.c
+++ b/lib/util/argv_exec.c
@@ -54,7 +54,7 @@ int setup_tty(const char *tty, bool truncate)
void argv_exec(exec_t *e)
{
- char **argv = alloca(e->argc + 1), *ptr;
+ char **argv = alloca(sizeof(char *) * (e->argc + 1)), *ptr;
int i;
for (ptr = e->args, i = 0; i < e->argc; ++i, ptr += strlen(ptr) + 1)