Removed as_slice_with_nul as CString now derefs to a CStr

This commit is contained in:
mitchmindtree 2015-02-22 01:17:47 +11:00
parent 0389c834e4
commit 1055eed078
5 changed files with 5 additions and 5 deletions

View file

@ -171,7 +171,7 @@ fn init(title: Vec<u16>, builder: BuilderAttribs<'static>, builder_sharelists: O
use libc;
let addr = CString::from_slice(addr.as_bytes());
let addr = addr.as_bytes_with_nul().as_ptr();
let addr = addr.as_ptr();
unsafe {
gl::wgl::GetProcAddress(addr) as *const libc::c_void