From: Sébastien Marie Date: Fri, 20 Feb 2015 10:00:24 +0000 (+0100) Subject: unbreak openbsd build after 1860ee52 X-Git-Url: https://git.lizzy.rs/?a=commitdiff_plain;h=082bf7fd0c3bcc3e71399d2826233bbadd7420a9;hp=522d09dfecbeca1595f25ac58c6d0178bbd21d7d;p=rust.git unbreak openbsd build after 1860ee52 The commit 1860ee52 has break the openbsd build. Repair it. --- diff --git a/src/libstd/sys/unix/os.rs b/src/libstd/sys/unix/os.rs index 3d1ef3a2c37..3fa7bc9915f 100644 --- a/src/libstd/sys/unix/os.rs +++ b/src/libstd/sys/unix/os.rs @@ -211,7 +211,7 @@ pub fn current_exe() -> IoResult { 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())) } } }