summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Ladybird/HelperProcess.cpp1
-rw-r--r--Ladybird/WebContentView.cpp2
2 files changed, 1 insertions, 2 deletions
diff --git a/Ladybird/HelperProcess.cpp b/Ladybird/HelperProcess.cpp
index b3e12bcbe4..f5a8ca9873 100644
--- a/Ladybird/HelperProcess.cpp
+++ b/Ladybird/HelperProcess.cpp
@@ -15,7 +15,6 @@ ErrorOr<void> spawn_helper_process(StringView process_name, Span<StringView> arg
VERIFY(!paths.is_empty());
ErrorOr<void> result;
for (auto const& path : paths) {
- arguments[0] = path.bytes_as_string_view();
result = Core::System::exec(path, arguments, search_in_path, environment);
if (!result.is_error())
break;
diff --git a/Ladybird/WebContentView.cpp b/Ladybird/WebContentView.cpp
index df7dab4ea3..d6d9c7ef46 100644
--- a/Ladybird/WebContentView.cpp
+++ b/Ladybird/WebContentView.cpp
@@ -581,7 +581,7 @@ void WebContentView::create_client()
auto webcontent_fd_passing_socket_string = DeprecatedString::number(wc_fd_passing_fd);
- Vector<StringView> arguments {
+ Vector<StringView, 5> arguments {
"WebContent"sv,
"--webcontent-fd-passing-socket"sv,
webcontent_fd_passing_socket_string