diff --git a/lix/libexec/common.hh b/lix/libexec/common.hh index 3f5885c8b..5dce83043 100644 --- a/lix/libexec/common.hh +++ b/lix/libexec/common.hh @@ -65,7 +65,7 @@ inline void die(std::string_view msg) } \ \ DIE_UNLESS_SYS("error pipe fcntl", fcntl(ERR_PIPE, F_SETFD, FD_CLOEXEC)); \ - return helperMain(argv[0], {argv + 2, argv + argc - 2}); \ + return helperMain(argv[0], {argv + 2, argv + argc}); \ } int helperMain(const char * name, std::span args) noexcept;