std: vec::to_ptr -> vec::unsafe::to_ptr

This commit is contained in:
Brian Anderson 2012-03-02 12:29:40 -08:00
parent d3a0f7e9fc
commit 77fc4e7ee7
1 changed files with 1 additions and 1 deletions

View File

@ -66,7 +66,7 @@ fn getenv(n: str) -> option<str> {
str::as_buf(n,
{|nbuf|
unsafe {
let vbuf = vec::to_ptr(v);
let vbuf = vec::unsafe::to_ptr(v);
os::kernel32::GetEnvironmentVariableA(nbuf, vbuf,
nsize)
}