Fix stray vec::as_buf, try to put out fire on win32.

This commit is contained in:
Graydon Hoare 2012-09-13 16:16:15 -07:00
parent ccd4a0e362
commit 989536083d

View File

@ -114,7 +114,7 @@ mod win32 {
let mut t = str::to_utf16(s);
// Null terminate before passing on.
t += ~[0u16];
vec::as_buf(t, |buf, _len| f(buf))
vec::as_imm_buf(t, |buf, _len| f(buf))
}
}