Skip to content
This repository has been archived by the owner on Feb 11, 2024. It is now read-only.

Commit

Permalink
fixed param load bug in main.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
000lbh authored Oct 21, 2023
1 parent c657f2f commit ecb8984
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -144,8 +144,8 @@ int main(int argc, const char *argv[])
std::string parg;
size_t arg_size{ pargs[0].length() + 1 };
while (psin >> parg) {
arg_size += parg.length() + 1;
ppargs.push_back(ARG_BASE + arg_size);
arg_size += parg.length() + 1;
pargs.push_back(parg);
}
arg_size = (arg_size + PGSIZE - 1) & ~(PGSIZE - 1);
Expand Down

0 comments on commit ecb8984

Please sign in to comment.