diff options
Diffstat (limited to 'Userland/Libraries/LibCore/Command.cpp')
-rw-r--r-- | Userland/Libraries/LibCore/Command.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Userland/Libraries/LibCore/Command.cpp b/Userland/Libraries/LibCore/Command.cpp index 25e48425a6..ab6ea80bef 100644 --- a/Userland/Libraries/LibCore/Command.cpp +++ b/Userland/Libraries/LibCore/Command.cpp @@ -46,13 +46,13 @@ ErrorOr<CommandResult> command(String const& program, Vector<String> const& argu close(stderr_pipe[0]); }); - Vector<const char*> parts = { program.characters() }; - for (const auto& part : arguments) { + Vector<char const*> parts = { program.characters() }; + for (auto const& part : arguments) { parts.append(part.characters()); } parts.append(nullptr); - const char** argv = parts.data(); + char const** argv = parts.data(); posix_spawn_file_actions_t action; posix_spawn_file_actions_init(&action); |