Skip to content

Commit c8e4540

Browse files
committed
std: fix a typo where .to_c_str wasn't being called on android
1 parent 986ba9c commit c8e4540

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libstd/os.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -467,7 +467,7 @@ pub fn self_exe_path() -> Option<Path> {
467467
let mut path = [0 as c_char, .. TMPBUF_SZ];
468468

469469
do path.as_mut_buf |buf, len| {
470-
let len = do "/proc/self/exe".to_c_str.with_ref |proc_self_buf| {
470+
let len = do "/proc/self/exe".to_c_str().with_ref |proc_self_buf| {
471471
readlink(proc_self_buf, buf, len as size_t) as uint
472472
};
473473

0 commit comments

Comments
 (0)