diff --git a/src/systemctl/systemctl.c b/src/systemctl/systemctl.c index 965cbaaf33..9d94935d68 100644 --- a/src/systemctl/systemctl.c +++ b/src/systemctl/systemctl.c @@ -6449,7 +6449,7 @@ static int enable_sysv_units(const char *verb, char **args) { assert(f > 0); f--; assert(args[f] == name); - strv_remove(args, name); + strv_remove(args + f, name); } #endif