libutil: fix libexec helper args span calculation

fucking hate C

Change-Id: I678c9eda32911ce7ea5e76c4274b71e45e7f3790
This commit is contained in:
eldritch horrors
2026-01-20 19:16:00 +01:00
parent 8039d69818
commit 761f8ab6eb
+1 -1
View File
@@ -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<char *> args) noexcept;