about summary refs log tree commit diff
path: root/src/lib/run_program.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/run_program.rs')
-rw-r--r--src/lib/run_program.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/run_program.rs b/src/lib/run_program.rs
index 4482431f67c..6d6940db872 100644
--- a/src/lib/run_program.rs
+++ b/src/lib/run_program.rs
@@ -27,7 +27,8 @@ fn spawn_process(prog: &istr, args: &[istr], in_fd: int, out_fd: int,
     // pointer to its buffer
     let argv = arg_vec(prog, args);
     let pid =
-        rustrt::rust_run_program(vec::to_ptr(argv), in_fd, out_fd, err_fd);
+        rustrt::rust_run_program(vec::unsafe::to_ptr(argv),
+                                 in_fd, out_fd, err_fd);
     ret pid;
 }