diff options
| author | Ondrej Perutka <[email protected]> | 2015-12-16 11:11:14 +0100 |
|---|---|---|
| committer | Ondrej Perutka <[email protected]> | 2015-12-16 11:11:14 +0100 |
| commit | 02d2230a76ec0ebd6d18cd75e5a51168ad376dbe (patch) | |
| tree | d98ea9359a5e66e9c79e2a9f8f4a00266b3ce230 /openssl/src | |
| parent | Rustfmt (diff) | |
| download | rust-openssl-02d2230a76ec0ebd6d18cd75e5a51168ad376dbe.tar.xz rust-openssl-02d2230a76ec0ebd6d18cd75e5a51168ad376dbe.zip | |
Fix regression of c_char type mismatches on ARM
Diffstat (limited to 'openssl/src')
| -rw-r--r-- | openssl/src/ssl/mod.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/openssl/src/ssl/mod.rs b/openssl/src/ssl/mod.rs index 981b3bcd..183cf19d 100644 --- a/openssl/src/ssl/mod.rs +++ b/openssl/src/ssl/mod.rs @@ -951,7 +951,7 @@ impl Ssl { return None; } - unsafe { String::from_utf8(CStr::from_ptr(name).to_bytes().to_vec()).ok() } + unsafe { String::from_utf8(CStr::from_ptr(name as *const _).to_bytes().to_vec()).ok() } } /// change the context corresponding to the current connection |