issue #1352: change param order on vec::init_elt, putting block in final position.

To match the init_fn() and init_fn_mut() changes.
This commit is contained in:
Graham Fawcett
2012-01-18 16:02:29 -05:00
committed by Brian Anderson
parent 35d12be2ce
commit 7763b40c71
27 changed files with 56 additions and 56 deletions

View File

@@ -125,7 +125,7 @@ fn dylib_filename(base: str) -> str { ret "lib" + base + ".so"; }
/// followed by a path separator
fn get_exe_path() -> option::t<fs::path> {
let bufsize = 1023u;
let path = str::unsafe_from_bytes(vec::init_elt(0u8, bufsize));
let path = str::unsafe_from_bytes(vec::init_elt(bufsize, 0u8));
ret str::as_buf("/proc/self/exe", { |proc_self_buf|
str::as_buf(path, { |path_buf|
if libc::readlink(proc_self_buf, path_buf, bufsize) != -1 {