Add another null byte preceding commandline args passed to the root task, in position of closure/obj pointer.

This commit is contained in:
Roy Frostig 2010-07-13 17:47:05 -07:00
parent dbb109853f
commit 5d10a264de
1 changed files with 1 additions and 1 deletions

View File

@ -236,7 +236,7 @@ rust_start(uintptr_t main_fn, rust_crate const *crate, int argc, char **argv)
rust_crate_reader rdr(&dom, crate);
}
uintptr_t main_args[3] = { 0, 0, (uintptr_t)args.args };
uintptr_t main_args[4] = { 0, 0, 0, (uintptr_t)args.args };
dom.root_task->start(crate->get_exit_task_glue(),
main_fn,