From c8e454097bf44b1b5b91b46da08dabe9f140a6ee Mon Sep 17 00:00:00 2001 From: Erick Tryzelaar Date: Mon, 5 Aug 2013 19:54:49 -0700 Subject: [PATCH] std: fix a typo where .to_c_str wasn't being called on android --- src/libstd/os.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libstd/os.rs b/src/libstd/os.rs index 6d109aac4ea..0e25d3dbe04 100644 --- a/src/libstd/os.rs +++ b/src/libstd/os.rs @@ -467,7 +467,7 @@ pub fn self_exe_path() -> Option { let mut path = [0 as c_char, .. TMPBUF_SZ]; do path.as_mut_buf |buf, len| { - let len = do "/proc/self/exe".to_c_str.with_ref |proc_self_buf| { + let len = do "/proc/self/exe".to_c_str().with_ref |proc_self_buf| { readlink(proc_self_buf, buf, len as size_t) as uint };