Don't use a Vec in os::current_exe on FreeBSD.

This commit is contained in:
Peter Marheine 2015-10-12 10:37:28 +00:00
parent 843e528fd0
commit 7db4163ffd

View File

@ -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];