diff options
| author | Sébastien Marie <semarie@users.noreply.github.com> | 2015-02-20 11:00:24 +0100 |
|---|---|---|
| committer | Sébastien Marie <semarie@users.noreply.github.com> | 2015-02-20 11:03:53 +0100 |
| commit | 082bf7fd0c3bcc3e71399d2826233bbadd7420a9 (patch) | |
| tree | b5c15659854e5c20c616948397a2076a3b293c9a /src/libstd/sys | |
| parent | 522d09dfecbeca1595f25ac58c6d0178bbd21d7d (diff) | |
| download | rust-082bf7fd0c3bcc3e71399d2826233bbadd7420a9.tar.gz rust-082bf7fd0c3bcc3e71399d2826233bbadd7420a9.zip | |
unbreak openbsd build after 1860ee52
The commit 1860ee52 has break the openbsd build. Repair it.
Diffstat (limited to 'src/libstd/sys')
| -rw-r--r-- | src/libstd/sys/unix/os.rs | 2 |
1 files changed, 1 insertions, 1 deletions
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<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())) } } } |
