chiark / gitweb /
util: allow strappenda to take any number of args
[elogind.git] / src / systemctl / systemctl.c
index 540b4a64c1f5077f7c5364fb2bb37f5419ec4d97..36db652316a0120b41281d2dfc0785491003a83b 100644 (file)
@@ -4827,7 +4827,7 @@ static int switch_root(sd_bus *bus, char **args) {
                 const char *root_systemd_path = NULL, *root_init_path = NULL;
 
                 root_systemd_path = strappenda(root, "/" SYSTEMD_BINARY_PATH);
-                root_init_path = strappenda3(root, "/", init);
+                root_init_path = strappenda(root, "/", init);
 
                 /* If the passed init is actually the same as the
                  * systemd binary, then let's suppress it. */