Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 9f0c85a

Browse files
committedJun 12, 2013
std: fix windows
1 parent 13460de commit 9f0c85a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/libstd/run.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -741,7 +741,7 @@ fn with_envp<T>(env: Option<&[(~str, ~str)]>, cb: &fn(*mut c_void) -> T) -> T {
741741
let mut blk = ~[];
742742
for es.each |&(k, v)| {
743743
let kv = fmt!("%s=%s", k, v);
744-
blk.push_all(kv.as_bytes_consume_with_nul());
744+
blk.push_all(kv.as_bytes_with_null_consume());
745745
}
746746
blk.push(0);
747747
vec::as_imm_buf(blk, |p, _len|

5 commit comments

Comments
 (5)

bors commented on Jun 12, 2013

@bors
Collaborator

saw approval from thestinger
at huonw@9f0c85a

bors commented on Jun 12, 2013

@bors
Collaborator

merging huonw/rust/more-str = 9f0c85a into auto

bors commented on Jun 12, 2013

@bors
Collaborator

huonw/rust/more-str = 9f0c85a merged ok, testing candidate = cc80652

bors commented on Jun 12, 2013

@bors
Collaborator

fast-forwarding incoming to auto = cc80652

Please sign in to comment.