mirror of
https://github.com/chatmail/core.git
synced 2026-05-02 21:06:31 +03:00
Pass setup_code to dc_continue_key_transfer as &str
This commit is contained in:
committed by
holger krekel
parent
8165b76001
commit
60bd053095
@@ -1573,7 +1573,9 @@ pub unsafe extern "C" fn dc_continue_key_transfer(
|
||||
}
|
||||
let ffi_context = &*context;
|
||||
ffi_context
|
||||
.with_inner(|ctx| dc_imex::dc_continue_key_transfer(ctx, msg_id, setup_code) as libc::c_int)
|
||||
.with_inner(|ctx| {
|
||||
dc_imex::dc_continue_key_transfer(ctx, msg_id, as_str(setup_code)) as libc::c_int
|
||||
})
|
||||
.unwrap_or(0)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user