diff --git a/Libraries/LibCore/ProcessWindows.cpp b/Libraries/LibCore/ProcessWindows.cpp index 784553ed0ba..5fd5566dc08 100644 --- a/Libraries/LibCore/ProcessWindows.cpp +++ b/Libraries/LibCore/ProcessWindows.cpp @@ -48,7 +48,9 @@ ErrorOr Process::spawn(ProcessSpawnOptions const& options) else builder.appendff("\"{}\" ", options.executable); - builder.join(' ', options.arguments); + for (auto arg : options.arguments) + builder.appendff("\"{}\" ", arg); + builder.append('\0'); ByteBuffer command_line = TRY(builder.to_byte_buffer());