diff --git a/src/extra-tools/execl-cmdline.c b/src/extra-tools/execl-cmdline.c index 4f5a88dd541fd8cef76e6d4523819b964f94bd25..15581606b2fd635d9a90f57ff4fd12d1c9534ba4 100644 --- a/src/extra-tools/execl-cmdline.c +++ b/src/extra-tools/execl-cmdline.c @@ -147,15 +147,8 @@ int main(int argc, char const **argv, char const *const *envp) stralloc_free(&tmodifs) ; - size_t enlen = modifs.len ; - char toend[modifs.len + 1] ; - memcpy(toend,modifs.s,enlen) ; - toend[enlen] = 0 ; - - stralloc_free(&modifs) ; - char const *newarg[r + 1] ; - if (!env_make(newarg, r, toend, enlen)) strerr_diefu1sys(111, "env_make") ; + if (!env_make(newarg, r, modifs.s, modifs.len)) strerr_diefu1sys(111, "env_make") ; newarg[r] = 0 ; xpathexec_run(newarg[0],newarg,envp) ;