std: fix a typo where .to_c_str wasn't being called on android
This commit is contained in:
@@ -467,7 +467,7 @@ pub fn self_exe_path() -> Option<Path> {
|
|||||||
let mut path = [0 as c_char, .. TMPBUF_SZ];
|
let mut path = [0 as c_char, .. TMPBUF_SZ];
|
||||||
|
|
||||||
do path.as_mut_buf |buf, len| {
|
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
|
readlink(proc_self_buf, buf, len as size_t) as uint
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user