fix cast to libc::c_char, signed i8 fails eg. on android

This commit is contained in:
B. Petersen
2019-11-24 17:04:21 +01:00
committed by holger krekel
parent e2a86dd803
commit 966b9fac49

View File

@@ -54,7 +54,7 @@ pub fn parse_message_id(message_id: &[u8]) -> Result<String, Error> {
let mut rfc724_mid_c = std::ptr::null_mut();
if unsafe {
mailimf_msg_id_parse(
message_id.as_ptr() as *const i8,
message_id.as_ptr() as *const libc::c_char,
message_id.len(),
&mut dummy,
&mut rfc724_mid_c,