Fix password callback on ARM

Closes #449
This commit is contained in:
Steven Fackler 2016-09-08 09:35:56 -07:00 committed by GitHub
parent bb23d5119f
commit 9a449dbd6e
1 changed files with 1 additions and 1 deletions

View File

@ -41,7 +41,7 @@ pub extern "C" fn invoke_passwd_cb<F>(buf: *mut c_char,
_rwflag: c_int,
cb_state: *mut c_void)
-> c_int
where F: FnOnce(&mut [i8]) -> usize {
where F: FnOnce(&mut [c_char]) -> usize {
let result = panic::catch_unwind(|| {
// build a `i8` slice to pass to the user callback
let pass_slice = unsafe { slice::from_raw_parts_mut(buf, size as usize) };