Skip to content

Commit 5d10a26

Browse files
committed
Add another null byte preceding commandline args passed to the root task, in position of closure/obj pointer.
1 parent dbb1098 commit 5d10a26

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/rt/rust.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ rust_start(uintptr_t main_fn, rust_crate const *crate, int argc, char **argv)
236236
rust_crate_reader rdr(&dom, crate);
237237
}
238238

239-
uintptr_t main_args[3] = { 0, 0, (uintptr_t)args.args };
239+
uintptr_t main_args[4] = { 0, 0, 0, (uintptr_t)args.args };
240240

241241
dom.root_task->start(crate->get_exit_task_glue(),
242242
main_fn,

0 commit comments

Comments
 (0)