libutil: fix libexec helper args span calculation
fucking hate C Change-Id: I678c9eda32911ce7ea5e76c4274b71e45e7f3790
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user