Fix regression of c_char type mismatches on ARM

This commit is contained in:
Ondrej Perutka 2015-12-16 11:11:14 +01:00
parent 157e6aa961
commit 02d2230a76
1 changed files with 1 additions and 1 deletions

View File

@ -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