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 };