std: fix a typo where .to_c_str wasn't being called on android

This commit is contained in:
Erick Tryzelaar 2013-08-05 19:54:49 -07:00
parent 986ba9c3c1
commit c8e454097b

View File

@ -467,7 +467,7 @@ pub fn self_exe_path() -> Option<Path> {
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
};