From 761f8ab6eba938a3c49a4efd4f0dcb4b3bf59a09 Mon Sep 17 00:00:00 2001 From: eldritch horrors Date: Tue, 20 Jan 2026 19:16:00 +0100 Subject: [PATCH] libutil: fix libexec helper args span calculation fucking hate C Change-Id: I678c9eda32911ce7ea5e76c4274b71e45e7f3790 --- lix/libexec/common.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;