unbreak openbsd build after 1860ee52

The commit 1860ee52 has break the openbsd build.
Repair it.
This commit is contained in:
Sébastien Marie 2015-02-20 11:00:24 +01:00
parent 522d09dfec
commit 082bf7fd0c

View File

@ -211,7 +211,7 @@ pub fn current_exe() -> IoResult<Path> {
if v.is_null() {
Err(IoError::last_error())
} else {
Ok(Path::new(CStr::from_ptr(&v).to_bytes().to_vec()))
Ok(Path::new(CStr::from_ptr(v).to_bytes().to_vec()))
}
}
}