mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2025-01-11 13:49:23 -05:00
pack: Fix off-by-one in PRoot handling in the wrapper.
* gnu/packages/aux-files/run-in-namespace.c (exec_with_proot): Make 'proot_argv' one element larger to account for the terminating NULL.
This commit is contained in:
parent
8ba2aa22f1
commit
4a53c19a32
1 changed files with 1 additions and 1 deletions
|
@ -221,7 +221,7 @@ exec_with_proot (const char *store, int argc, char *argv[])
|
|||
{
|
||||
int proot_specific_argc = 4;
|
||||
int proot_argc = argc + proot_specific_argc;
|
||||
char *proot_argv[proot_argc], *proot;
|
||||
char *proot_argv[proot_argc + 1], *proot;
|
||||
char bind_spec[strlen (store) + 1 + sizeof "@STORE_DIRECTORY@"];
|
||||
|
||||
strcpy (bind_spec, store);
|
||||
|
|
Loading…
Reference in a new issue