mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-20 11:36:10 +00:00
LibCore: Correctly pass arguments with spaces to Process on Windows
This commit is contained in:
parent
1173b14c43
commit
e6e233fd64
Notes:
github-actions[bot]
2025-02-06 22:16:16 +00:00
Author: https://github.com/stasoid Commit: https://github.com/LadybirdBrowser/ladybird/commit/e6e233fd64d Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/3021 Reviewed-by: https://github.com/ADKaster ✅
1 changed files with 3 additions and 1 deletions
|
@ -48,7 +48,9 @@ ErrorOr<Process> 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());
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue