diff options
| author | Roy Frostig <rfrostig@mozilla.com> | 2010-07-13 17:47:05 -0700 |
|---|---|---|
| committer | Roy Frostig <rfrostig@mozilla.com> | 2010-07-15 12:30:46 -0700 |
| commit | 5d10a264de17df801e893df2d1e2725c78162179 (patch) | |
| tree | f9b79b082767a8564e8c37042a9541e6cc5d51a6 /src/rt/rust.cpp | |
| parent | dbb109853f0ca15e9bb82c39ddecb83d2838e7fc (diff) | |
| download | rust-5d10a264de17df801e893df2d1e2725c78162179.tar.gz rust-5d10a264de17df801e893df2d1e2725c78162179.zip | |
Add another null byte preceding commandline args passed to the root task, in position of closure/obj pointer.
Diffstat (limited to 'src/rt/rust.cpp')
| -rw-r--r-- | src/rt/rust.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rt/rust.cpp b/src/rt/rust.cpp index 91476bed4c4..235eb8d0d98 100644 --- a/src/rt/rust.cpp +++ b/src/rt/rust.cpp @@ -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, |
