From 082bf7fd0c3bcc3e71399d2826233bbadd7420a9 Mon Sep 17 00:00:00 2001 From: =?utf8?q?S=C3=A9bastien=20Marie?= Date: Fri, 20 Feb 2015 11:00:24 +0100 Subject: [PATCH] unbreak openbsd build after 1860ee52 The commit 1860ee52 has break the openbsd build. Repair it. --- src/libstd/sys/unix/os.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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())) } } } -- 2.44.0