]> git.lizzy.rs Git - rust.git/blobdiff - src/libstd/sys/unix/process/process_fuchsia.rs
Auto merge of #66675 - GuillaumeGomez:support-anchors-intra-doc-links, r=kinnison
[rust.git] / src / libstd / sys / unix / process / process_fuchsia.rs
index 2b1a3ecfd70f590fd57977841ce18bb1610e02e5..486c12f9bf88ab0c9558cb62fe4251e52220328b 100644 (file)
@@ -110,7 +110,7 @@ unsafe fn do_exec(&mut self, stdio: ChildPipes, maybe_envp: Option<&CStringArray
             ZX_HANDLE_INVALID,
             FDIO_SPAWN_CLONE_JOB | FDIO_SPAWN_CLONE_LDSVC | FDIO_SPAWN_CLONE_NAMESPACE
             | FDIO_SPAWN_CLONE_ENVIRON,  // this is ignored when envp is non-null
-            self.get_argv()[0], self.get_argv().as_ptr(), envp,
+            self.get_program().as_ptr(), self.get_argv().as_ptr(), envp,
             actions.len() as size_t, actions.as_ptr(),
             &mut process_handle,
             ptr::null_mut(),