mirror of
https://git.savannah.gnu.org/git/make.git
synced 2025-02-06 14:36:37 +00:00
* src/job.c (child_execute_job): Allocate space for argv NULL.
This commit is contained in:
parent
bd4ce86785
commit
96285f875b
1 changed files with 1 additions and 1 deletions
|
@ -2399,7 +2399,7 @@ child_execute_job (struct childbase *child, int good_stdin, char **argv)
|
|||
for (pp = argv; *pp != NULL; ++pp)
|
||||
++l;
|
||||
|
||||
nargv = xmalloc (sizeof (char *) * (l + 2));
|
||||
nargv = xmalloc (sizeof (char *) * (l + 3));
|
||||
nargv[0] = (char *)default_shell;
|
||||
nargv[1] = cmd;
|
||||
memcpy (&nargv[2], &argv[1], sizeof (char *) * l);
|
||||
|
|
Loading…
Reference in a new issue