From fc71ed0e88d4ef910b504a96172bcc4a604aca8e Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Sun, 21 Jul 2024 16:29:04 +0000 Subject: Fix runblock segv Signed-off-by: Laurent Bercot --- src/execline/runblock.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/execline/runblock.c b/src/execline/runblock.c index 1173cd9..7d507dc 100644 --- a/src/execline/runblock.c +++ b/src/execline/runblock.c @@ -139,7 +139,7 @@ int main (int argc, char const *const *argv, char const *const *envp) } if (flagnopop) /* exec now */ - xexec_e(genalloc_s(char const *, &v), envp) ; + xexec0_e(genalloc_s(char const *, &v), envp) ; else /* popenv, then exec */ { char const *list[11] = { "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "#" } ; @@ -152,7 +152,7 @@ int main (int argc, char const *const *argv, char const *const *envp) if (!env_make(w, envlen - popped, satmp.s, satmp.len)) strerr_diefu1sys(111, "env_make") ; w[envlen - popped] = 0 ; - xexec_e(genalloc_s(char const *, &v), w) ; + xexec0_e(genalloc_s(char const *, &v), w) ; } } } -- cgit 1.4.1