Don't use a Vec in os::current_exe on FreeBSD.
This commit is contained in:
parent
843e528fd0
commit
7db4163ffd
@ -187,7 +187,7 @@ pub fn current_exe() -> io::Result<PathBuf> {
|
||||
unsafe {
|
||||
use libc::funcs::bsd44::*;
|
||||
use libc::consts::os::extra::*;
|
||||
let mut mib = vec![CTL_KERN as c_int,
|
||||
let mut mib = [CTL_KERN as c_int,
|
||||
KERN_PROC as c_int,
|
||||
KERN_PROC_PATHNAME as c_int,
|
||||
-1 as c_int];
|
||||
|
Loading…
Reference in New Issue
Block a user