mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-01 13:49:16 +00:00
AK: Make Vector use size_t for its size and capacity
This commit is contained in:
parent
9c6f7d3e7d
commit
ceec1a7d38
Notes:
sideshowbarker
2024-07-19 09:04:32 +09:00
Author: https://github.com/awesomekling
Commit: ceec1a7d38
94 changed files with 323 additions and 317 deletions
|
@ -143,7 +143,7 @@ void TerminalWrapper::run_command(const String& command)
|
|||
auto parts = command.split(' ');
|
||||
ASSERT(!parts.is_empty());
|
||||
const char** args = (const char**) calloc(parts.size() + 1, sizeof(const char*));
|
||||
for (int i = 0; i < parts.size(); i++) {
|
||||
for (size_t i = 0; i < parts.size(); i++) {
|
||||
args[i] = parts[i].characters();
|
||||
}
|
||||
rc = execvp(args[0], const_cast<char**>(args));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue