aboutsummaryrefslogtreecommitdiffstats
path: root/src/android
diff options
context:
space:
mode:
authormitchmindtree <mitchell.nordine@gmail.com>2015-02-22 01:17:47 +1100
committermitchmindtree <mitchell.nordine@gmail.com>2015-02-22 01:17:47 +1100
commit1055eed078f674ad4cc657e99a247310183d635e (patch)
tree862f0b3320c22d8cd5b7283203b71f10b66dab7d /src/android
parent0389c834e4b456ad6dcce4f687c69ab0e84beafa (diff)
downloadglutin-1055eed078f674ad4cc657e99a247310183d635e.tar.gz
glutin-1055eed078f674ad4cc657e99a247310183d635e.zip
Removed as_slice_with_nul as CString now derefs to a CStr
Diffstat (limited to 'src/android')
-rw-r--r--src/android/mod.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/android/mod.rs b/src/android/mod.rs
index 563ca50..bcf08ad 100644
--- a/src/android/mod.rs
+++ b/src/android/mod.rs
@@ -313,7 +313,7 @@ impl Window {
pub fn get_proc_address(&self, addr: &str) -> *const () {
let addr = CString::from_slice(addr.as_bytes());
- let addr = addr.as_bytes_with_nul().as_ptr();
+ let addr = addr.as_ptr();
unsafe {
ffi::egl::GetProcAddress(addr) as *const ()
}