diff options
| author | Huon Wilson <dbau.pp+github@gmail.com> | 2013-06-12 13:42:41 +1000 |
|---|---|---|
| committer | Huon Wilson <dbau.pp+github@gmail.com> | 2013-06-12 13:42:41 +1000 |
| commit | 9f0c85acc967110c85f9a8bdcb32df4606a6dff5 (patch) | |
| tree | 4ab1d57cd888c14bd79d83f8dd547ee8be1cc6d3 /src/libstd | |
| parent | 13460de61c7fc81fc82ca003ac35dc49ddc0d6b4 (diff) | |
| download | rust-9f0c85acc967110c85f9a8bdcb32df4606a6dff5.tar.gz rust-9f0c85acc967110c85f9a8bdcb32df4606a6dff5.zip | |
std: fix windows
Diffstat (limited to 'src/libstd')
| -rw-r--r-- | src/libstd/run.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstd/run.rs b/src/libstd/run.rs index b8e08ea53d4..b204cf6cfb0 100644 --- a/src/libstd/run.rs +++ b/src/libstd/run.rs @@ -741,7 +741,7 @@ fn with_envp<T>(env: Option<&[(~str, ~str)]>, cb: &fn(*mut c_void) -> T) -> T { let mut blk = ~[]; for es.each |&(k, v)| { let kv = fmt!("%s=%s", k, v); - blk.push_all(kv.as_bytes_consume_with_nul()); + blk.push_all(kv.as_bytes_with_null_consume()); } blk.push(0); vec::as_imm_buf(blk, |p, _len| |
