Auto merge of #22825 - semarie:openbsd-pathbuf, r=alexcrichton

unbreak openbsd/bitrig build after 2d200c9c (the complete build/check on openbsd is in progress)

@dhuseby maybe this one is in your list ?
This commit is contained in:
bors 2015-02-26 23:04:03 +00:00
commit b47aebe3fc

View file

@ -229,7 +229,8 @@ pub fn current_exe() -> io::Result<PathBuf> {
if v.is_null() {
Err(io::Error::last_os_error())
} else {
Ok(Path::new(CStr::from_ptr(v).to_bytes().to_vec()))
let vec = CStr::from_ptr(v).to_bytes().to_vec();
Ok(PathBuf::new::<OsString>(&OsStringExt::from_vec(vec)))
}
}
}