From 513521cc65b0b273dce165f44b18a4275e76b829 Mon Sep 17 00:00:00 2001 From: Packit Service Date: Mar 14 2021 14:57:09 +0000 Subject: Apply patch glibc-rh1645593.patch patch_name: glibc-rh1645593.patch present_in_specfile: true location_in_specfile: 36 --- diff --git a/sysdeps/unix/sysv/linux/spawni.c b/sysdeps/unix/sysv/linux/spawni.c index cf0213e..85239ce 100644 --- a/sysdeps/unix/sysv/linux/spawni.c +++ b/sysdeps/unix/sysv/linux/spawni.c @@ -101,7 +101,7 @@ maybe_script_execute (struct posix_spawn_args *args) ptrdiff_t argc = args->argc; /* Construct an argument list for the shell. */ - char *new_argv[argc + 1]; + char *new_argv[argc + 2]; new_argv[0] = (char *) _PATH_BSHELL; new_argv[1] = (char *) args->file; if (argc > 1)