std: fix a typo where .to_c_str wasn't being called on android
This commit is contained in:
parent
986ba9c3c1
commit
c8e454097b
@ -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
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user