std: fix windows
This commit is contained in:
parent
13460de61c
commit
9f0c85acc9
1 changed files with 1 additions and 1 deletions
|
@ -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|
|
||||
|
|
Loading…
Add table
Reference in a new issue