Sadly, vec::init_elt_mut vanished since last (rushed) rebase.
This commit is contained in:
parent
dafd649806
commit
5812bebf87
1 changed files with 1 additions and 1 deletions
|
|
@ -144,7 +144,7 @@ fn dll_filename(base: str) -> str {
|
|||
|
||||
fn self_exe_path() -> option<path> unsafe {
|
||||
let bufsize = 1023u;
|
||||
let buf = vec::init_elt_mut(bufsize, 0u8 as c_char);
|
||||
let buf = vec::to_mut(vec::init_elt(bufsize, 0u8 as c_char));
|
||||
// FIXME: This does not handle the case where the buffer is too small
|
||||
ret vec::as_mut_buf(buf) {|pbuf|
|
||||
if load_self(pbuf as *mutable c_char, bufsize as c_uint) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue