Skip to content

Commit 9895360

Browse files
committed
Fix stray vec::as_buf, try to put out fire on win32.
1 parent ccd4a0e commit 9895360

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libcore/os.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ mod win32 {
114114
let mut t = str::to_utf16(s);
115115
// Null terminate before passing on.
116116
t += ~[0u16];
117-
vec::as_buf(t, |buf, _len| f(buf))
117+
vec::as_imm_buf(t, |buf, _len| f(buf))
118118
}
119119
}
120120

0 commit comments

Comments
 (0)