std: fix windows

This commit is contained in:
Huon Wilson 2013-06-12 13:42:41 +10:00
parent 13460de61c
commit 9f0c85acc9

View file

@ -741,7 +741,7 @@ fn with_envp<T>(env: Option<&[(~str, ~str)]>, cb: &fn(*mut c_void) -> T) -> T {
let mut blk = ~[]; let mut blk = ~[];
for es.each |&(k, v)| { for es.each |&(k, v)| {
let kv = fmt!("%s=%s", 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); blk.push(0);
vec::as_imm_buf(blk, |p, _len| vec::as_imm_buf(blk, |p, _len|